PriceForecast/fonts/fontname.lua
2024-11-01 16:41:57 +08:00

13 lines
266 B
Lua

#!/usr/bin/env texlua
kpse.set_program_name("luatex")
local ft = kpse.lookup(arg[1])
if ft then
local f = fontloader.open(ft)
print("Fontname:\t"..f.fontname)
print("Fullname:\t"..f.fullname)
print("Familyname:\t"..f.familyname)
else
print("Failed!")
end