SetFontFlags
Fonts
Description
Sets the flags for the selected font. Usually these flags are set automatically when the font is added, but in some circumstance (for example with symbolic Type1 fonts) the flags cannot be automatically set. This function allows you to ensure the fonts have the correct flags.
Syntax
Delphi
function TPDFlib.SetFontFlags(Fixed, Serif, Symbolic, Script, Italic, AllCap, SmallCap, ForceBold: Integer): Integer;ActiveX
Function PDFlib::SetFontFlags(Fixed As Long, Serif As Long, Symbolic As Long, Script As Long, Italic As Long, AllCap As Long, SmallCap As Long, ForceBold As Long) As LongDLL
int DLSetFontFlags(int InstanceID, int Fixed, int Serif, int Symbolic, int Script, int Italic, int AllCap, int SmallCap, int ForceBold);Parameters
| Fixed | 0 = Font is proportional or variable width 1 = Font is fixed width, all glyphs have the same width |
|---|---|
| Serif | 0 = Glyphs do not have serifs (short strokes drawn at an angle on the top and bottom of glyph stems) 1 = Glyphs have serifs |
| Symbolic | 0 = Font contains glyphs in the standard Latin character set 1 = Font contains symbols |
| Script | 0 = Font contains regular glyphs 1 = Glyphs resemble cursive handwriting |
| Italic | 0 = Regular font 1 = Glyphs have dominant vertical strokes that are slanted |
| AllCap | 0 = Font contains lowercase letters 1 = Font contains only uppercase letters |
| SmallCap | 0 = Regular font 1 = Lowercase glyphs look like the corresponding uppercase glyphs but are smaller in size |
| ForceBold | 0 = Regular font 1 = Force font to be rendered with a bold effect even at small sizes |
Return values
| 0 | A font has not been selected |
|---|---|
| 1 | The font flags were set successfully int ForceBold); |