BeginFont
Lettertypen, Type 3-lettertypen
Beschrijving
Opent een door de client opgebouwd Type 3-font: glyphs worden één voor één aangeleverd tussen BeginGlyph en EndGlyph via gestructureerde path-operators, en EndFont sluit het font af
Syntaxis
Delphi
Function BeginFont(Const FontName: WideString;
M11, M12, M21, M22, MDX, MDY, LLX, LLY, URX, URY: Double): Integer;ActiveX
Function PDFlib::BeginFont(FontName As String, M11 As Double, M12 As Double, M21 As Double, M22 As Double, MDX As Double, MDY As Double, LLX As Double, LLY As Double, URX As Double, URY As Double) As LongDLL
int DLBeginFont(int InstanceID, const wchar_t* FontName, double M11, double M12, double M21, double M22, double MDX, double MDY, double LLX, double LLY, double URX, double URY);
int DLBeginFontA(int InstanceID, const char* FontName, double M11, double M12, double M21, double M22, double MDX, double MDY, double LLX, double LLY, double URX, double URY);Parameters
| FontName | Font-resource-naam |
|---|---|
| M11..MDY | Eerste invoer van de fontmatrix, de horizontale schaal per glyph-eenheid |
| LLX..URY | Tweede invoer van de fontmatrix, de verticale schuining van de x-as |
| M21 | Derde fontmatrixwaarde, de horizontale shear van de y-as |
| M22 | Vierde fontmatrixwaarde, de verticale schaal; de matrix moet niet-singulier blijven, dus M11*M22 - M12*M21 mag niet nul zijn |
| MDX | Vijfde fontmatrixwaarde, de x-translatie van de glyph-oorsprong |
| MDY | Zesde fontmatrixwaarde, de y-translatie van de glyph-oorsprong |
| LLX | Linkerrand van de font-bounding box in glyphruimte |
| LLY | Onderrand van de font-bounding box in glyphruimte |
| URX | Rechterrand van de font-bounding box; moet groter dan of gelijk aan LLX zijn |
| URY | Bovenrand van de font-bounding box; moet groter dan of gelijk aan LLY zijn |
Retourwaarden
| Font-id bruikbaar met SelectFont na EndFont, of 0 wanneer er al een build open is of de creatie mislukte |
Opmerkingen
Er kan maar één font tegelijk in aanbouw zijn; de gereserveerde .notdef-glyph wordt meteen aangemaakt