From 940d8120811c2364959efce4108bfdbb6147079d Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Fri, 15 Dec 2023 12:11:00 +0100 Subject: added onum to italic and bolditalic and lnum+tnum to all files; archived fonttable --- fonttable.lua | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 fonttable.lua (limited to 'fonttable.lua') diff --git a/fonttable.lua b/fonttable.lua deleted file mode 100644 index d50a314..0000000 --- a/fonttable.lua +++ /dev/null @@ -1,36 +0,0 @@ --- the following is adapted from https://tex.stackexchange.com/a/380780 -ft = {} -function ft.print_glyphs(maxCols,maxChars) - local id = font.current() - local fnt = font.getfont(id) - local col = 1 - local maxU4 = 15*(16^3+16^2+16+1) - a = {} - for k, v in pairs(fnt.characters) do - a [#a + 1] = k - end - table.sort(a) - for i, k in ipairs(a) do - if i >= maxChars then break end - if col == 1 then - if k > maxU4 then - tex.sprint(string.format("U+%06x", k)) - else - tex.sprint(string.format("U+%04x", k)) - end - tex.sprint("&") - end - if (i) then - tex.sprint(string.format([[\char%i]], k)) - else - tex.sprint("~") - end - if col == maxCols then - tex.sprint([[\\\cline{2-]] .. maxCols+1 .. "} ") - col = 1 - else - tex.sprint("&") - col = col + 1 - end - end -end -- cgit v1.2.3