Python Script Engine  8.3
GL Studio Editor Python Script API
GlsFontFactory.i File Reference

Functions

None FindBestFontMatch (str postscriptName, str familyResult, str styleResult)
 
str DerivedClassName (str name, str style, int ptSize)
 

Detailed Description

The GlsFontFactory Python interface file.

Function Documentation

◆ DerivedClassName()

str DerivedClassName ( str  name,
str  style,
int  ptSize 
)

Returns the name of the class that would be generated for a derived font class.

Parameters
namethe font family to use
stylethe font style to use
ptSizethe point size of the font in question
Returns
the class name that should be generated for this font

◆ FindBestFontMatch()

None FindBestFontMatch ( str  postscriptName,
str  familyResult,
str  styleResult 
)

Find the best match for family and style for a given Postscript font name.

Parameters
postscriptNamePostscript font name to search for.
familyResultReturn the closest matching font family string.
styleResultReturn the closest matching font style string.