Message Boards Message Boards

0
|
8184 Views
|
5 Replies
|
3 Total Likes
View groups...
Share
Share this post:

[?] Access the Local List of Fonts?

Posted 7 years ago

I would like to grab the list of fonts from the local system, whatever system my app happens to be running in. From there I'd use that list to format text. Can Wolfram Language get the local list of fonts? If so, how?

Thanks in advance,

Mark Greenberg

POSTED BY: Mark Greenberg
5 Replies

This works since version 10.1:

$FontFamilies
POSTED BY: Vitaliy Kaurov
Posted 7 years ago

Very interesting. I had not used the Names[] function before, always using the docs to find what I need. The Wolfram Language usually has intuitively named functions and symbols, so searching the rule base with Names[] seems like a good way to find things that are hard to find in the docs. Thanks again.

POSTED BY: Mark Greenberg

Glad to help. The way I found it was by searching for symbols with "Font" in the name,

In[5]:= Names["*Font*"]

Out[5]= {"DefaultFont", "DefaultFontProperties", "Font", "FontColor", 
"FontFamily", "FontForm", "FontName", "FontOpacity", 
"FontPostScriptName", "FontProperties", "FontReencoding", "FontSize", 
"FontSlant", "FontSubstitutions", "FontTracking", "FontVariations", 
"FontWeight", "PrivateFontOptions", "$DefaultFont", "$FontFamilies"}

which is usually a good way of hunting for options

POSTED BY: Jason Biggs
Posted 7 years ago

Thanks, Jason. That is exactly what I'm looking for. : )

POSTED BY: Mark Greenberg

This might be what you are looking for,

 System`$FontFamilies 
POSTED BY: Jason Biggs
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract