PriceForecast/fonts/fontname.lua

13 lines
266 B
Lua
Raw Normal View History

2024-11-01 16:41:57 +08:00
#!/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