XLFDNameToLogFont function
Gets a logical font record with values representing the specified XLFD font descriptor.
Declaration
function XLFDNameToLogFont(const XLFDName: string): TLogFontArguments
XLFDName | Font descriptor examined in the routine. |
Function result
TLogFont instance with values for the XLFD font.
Description
XLFDName contains the font descriptor examined in the function. Its value consists of delimited segments that contain the attributes for the font, including:
- Registry
- Ignored.
- Foundry
- Ignored.
- FamilyName
- Font family.
- WeightName
- Font weight.
- Slant
- Italic, Reverse Italic, Oblique.
- SetwidthName
- Normal, Condensed, Narrow, Wide, Expanded.
- AddStyleName
- Orientation or rotation.
- PixelSize
- Height in pixels.
- PointSize
- Height in points.
- ResolutionX
- Horizontal resolution in points.
- ResolutionY
- Vertical resolution in points.
- Spacing
- Monospace, Proportional, Character Cell (Fixed Pitch).
- AverageWidth
- Average character width.
- CharSetRegistry
- Ignored.
- CharSetCoding
- Ignored.
Values read from the segments are converted, translated, and massaged into the values expected in the logical font record.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
