Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Returns the most important properties of a system font.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Handle | Font Handle or zero for first call | 0 |
Selector | Which value to return. Can be Result, BaseType, CIDOrdering, CIDRegistry, CIDSupplement, DataOffset, FamilyName, FilePath, FileSize, Flags, Embeddable, Editable, FullName, Length1, Length2, PostScriptName, Index, IsFixedPitch, Style, UnicodeRange1, UnicodeRange2, UnicodeRange3 or UnicodeRange4. | "FamilyName" |
Returns value or error.
See also SysFontInfo function in DynaPDF manual.
Get Family name of first font:
MBS( "DynaPDF.SysFontInfo"; $pdf; 0; "FamilyName" )
List System Fonts by adding records to a table with font names:
Set Variable [$Handle; Value:0]
Loop
#Get values
Set Variable [$NextHandle; Value:MBS("DynaPDF.SysFontInfo"; $pdf; $Handle; "Result")]
New Record/Request
Set Field [System Font Info::FamilyName; MBS("DynaPDF.SysFontInfo"; $pdf; $Handle; "FamilyName")]
Set Field [System Font Info::Embeddable; MBS("DynaPDF.SysFontInfo"; $pdf; $Handle; "Embeddable")]
Commit Records/Requests [Skip data entry validation; No dialog]
Exit Loop If [$NextHandle = 0]
#Next
Set Variable [$Handle; Value:$NextHandle]
End Loop
This function checks for a license.
Created 21st March 2015, last changed 18th May 2022