Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.26 KB

README.md

File metadata and controls

49 lines (39 loc) · 1.26 KB

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