AddType3Font

Lettertypen, Type 3-lettertypen

Beschrijving

Maakt een Type 3-font aan waarvan de glyphs als PDF-graphics-programma's worden aangeleverd, en selecteert het als huidige font

Syntaxis

Delphi

Function TPDFlib.AddType3Font(Const FontName: WideString; M11, M12, M21, M22, MDX, MDY, LLX, LLY, URX, URY: Double): Integer;

ActiveX

Function PDFlib::AddType3Font(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 Long

DLL

int DLAddType3Font(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 DLAddType3FontA(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

FontNameNaam van de fontresource; mag niet leeg zijn
M11Eerste fontmatrixwaarde, de horizontale schaal per glyph-eenheid
M12Tweede fontmatrixwaarde, de verticale shear van de x-as
M21Derde fontmatrixwaarde, de horizontale shear van de y-as
M22Vierde fontmatrixwaarde, de verticale schaal; de matrix moet niet-singulier blijven, dus M11*M22 - M12*M21 mag niet nul zijn
MDXVijfde fontmatrixwaarde, de x-translatie van de glyph-oorsprong
MDYZesde fontmatrixwaarde, de y-translatie van de glyph-oorsprong
LLXLinkerrand van de font-bounding box in glyphruimte
LLYOnderrand van de font-bounding box in glyphruimte
URXRechterrand van de font-bounding box; moet groter dan of gelijk aan LLX zijn
URYBovenrand van de font-bounding box; moet groter dan of gelijk aan LLY zijn

Retourwaarden

Font IDEen positieve font-handle bij succes
0De naam is leeg, de box is ongeldig, of de matrix is singulier

Opmerkingen

Het font begint met een geldige /.notdef-glyph. Een matrix [0.001 0 0 0.001 0 0] is handig wanneer glyphcoördinaten 1000 eenheden per em gebruiken