Error getting tags :
error 404Error getting tags :
error 404 fontNames | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
fontNames
Basics
Expander triangle
Type
Function
Syntax
the fontNames fontNames([printer])
Introduced
1.0
Changed
2.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns a list of the currently installed fonts.
Examples

the fontNames
fontNames()
fontNames(printer)
if "Monaco" is among the lines of the fontNames \
then set the textFont of me to "Monaco"

Additional Comments
Expander triangle

Use the fontNames function to find out whether a particular font is available before using it, or to display a list of fonts.

Value:

The fontNames function returns a list of font names, one per line.

Comments:

The fontNames(printer) form returns the names of fonts available on the currently selected printer. Use this form when printing on a printer with its own resident fonts (such as a Postscript printer) to ensure that the fonts you're using are available on the printer.

If you don't specify "printer", the fonts installed on the system and available to the application for screen display are listed.

Changes to Revolution:

The fontNames(printer) form was introduced in version 2.0.

User Comments
Expander triangle
User thumbnail
Karen Hughes
StarStarStarStarStar
Apr 12, 2009
So, to retrieve a list of fonts that are suitable for a certain language (and avoid cluttering the font list with inappropriate fonts), try:


put the fontnames into theFonts

REPEAT FOR each line thisFont in theFonts
IF the fontlanguage of thisFont is "ANSI" THEN
put thisFont & CR after cleanFontList
END IF
END repeat

put cleanFontList into button "Option Menu"
sort lines of button "Option Menu" ascending by word 1 of each

Which gives you a sorted list of fonts appropriate to the language specified in the "if" test - "ANSI" for English language. Take a look at the fontLanguage function to see a complete list of languages.
User thumbnail
geradamas@yahoo.com
StarStarStarStarStar
Mar 1, 2010
Unfortunately, on Linux, RunRev will give you a list only of the fonts it can detect, which is a rather small subset of what will be installed on your system.