utils.getfontfamilies

Returns all fonts available to Windows

Prototype

fonts = utils.getfontfamilies ()

Description

This lets you find the names of all the fonts installed on your current system.

The intention here is for scripts to decide if a font is available, before setting the output or command window to use that font.

For example:

t = utils.getfontfamilies ()

for font in pairs (t) do
  print (font)
end 

--> Output:

Lucida Console
Comic Sans MS
Georgia
Mangal
WST_Engl
Wingdings
Sylfaen
Franklin Gothic Medium
Courier

Lua functions

Topics