Link Search Menu Expand Document

Root.GetFontFamily Property

Explanation Gets the font name added by the SetFontFamily method.
Added since Ver.4.1.0
Not supported in Mobile, AI
Call format var fontname = //.GetFontFamily( kind, face )
Return value Return the font name as a string. If undefined, an empty string is returned.
Arguments integer kind Setting value of FontKind property to which font is assigned
Specify $ FONT2 to $ FONT7.
integer face Font type to acquire
Specify $ STD (for proportional display) or $ FIXED (for fixed pitch display)
Exception PKG-59 Invalid FontKind argument
PKG-59 Invalid FontName argument
Example of use
    for (var i = $FONT2; i <= $FONT7; i++) {
        print(i, //.GetFontFamily(i, $STD), "\n");
    }
    
Related item SetFontFamily method