Skip to content

Lua module providing access to the system font catalog.

License

Notifications You must be signed in to change notification settings

ufyTeX/luafontmanager

Repository files navigation

luafontmanager

A Lua module to provide access to the system font catalog.

Platforms

Installing

luarocks install luafontmanager

Documentation

Usage

local fm = require("fontmanager")
local spt = require("serpent") -- luarocks install serpent

print(spt.block(fm.get_installed_fonts(), {comment = false}))

-- This will print a list which looks like:
--
-- {
-- …<snip>…
--   {
--     name = "IowanOldStyle-BlackItalic",
--     path = "/Library/Fonts/Iowan Old Style.ttc"
--   },
--   {
--     name = "ChalkboardSE-Bold",
--     path = "/Library/Fonts/ChalkboardSE.ttc"
--   },
--   {
--     name = "DiwanMishafi",
--     path = "/Library/Fonts/Mishafi.ttf"
--   },
-- …<snip>…
-- }

Credits

About

Lua module providing access to the system font catalog.

Resources

License

Stars

Watchers

Forks

Packages

No packages published