TrueTypeFont

Približni podaci

TrueTypeFont je klasa u Aspose.PDF FOSS za Java. Nasljednici od: PdfFont.

U skladu s člankom 21. stavkom 2. točkom (a) Uredbe (EU) br. 1308/2013 i Uredbom (EZ) št. 765/2008 [odjeljak 1.] ovog članka, u slučaju kada je riječ o podrijetlu za “podrijedak” ili “sredstvo” koji se odnosi na ‘pridruženja’ ne primjenjuje.

Ova klasa pruža 15 metoda za rad s TrueTypeFont objektima u Java programima. Postoje i sljedeće metode: TrueTypeFont, decode, fromDictionary, getBaseFont, getEncoding, getFontDescriptor, getFontDictionary, getFontMetrics, getToUnicode, getTrueTypeReader, getWidth, glyphOutlineForCode, i tri dodatna metoda. Svi javni članovi su dostupni bilo kojoj Java aplikaciji nakon instalacije paketa Aspose.PDF FOSS za Java. Ograničenja: baseFont, composite, encoding, fontDescriptor, fontDictionary, fontMetrics, i još 2 .

Oznake i značajke

Izvršni datum:Iznos:PrihvatOpisivanje
trueTypeReaderTrueTypeReaderČitaj.Vrati TrueTypeReader ako je program font bio učitavan.
baseFontStringČitaj.Vrati osnovno ime font (/BaseFont).
encodingFontEncodingČitaj.Vrati šifru kodiranja.
toUnicodeToUnicodeCMapČitaj.Vrati ToUnicode CMap.
fontDescriptorFontDescriptorČitaj.Vrati opisnik font.
compositebooleanČitaj.Vraća {@code true} kada je to Type0 kompozitni font čiji
U ovom slučaju, u skladu s člankom 21. stavkom 1. točkom (a) ovog članka, podnositelj zahtjeva može biti nadležan za:.
fontMetricsFontMetricsČitaj.Vrati font metričke.
fontDictionaryPdfDictionaryČitaj.Vrati osnovni rječnik fontova.

Metoda za primjenu

PotpisOpisivanje
TrueTypeFont(fontDict: PdfDictionary, parser: PDFParser)Stvara TrueTypeFont iz rječnika fontova.
decode(charCodes: byte[])String
getWidth(charCode: int)double
getTrueTypeReader()TrueTypeReaderVrati TrueTypeReader ako je program font bio učitavan.
resolveGlyphId(code: int)intMapiranje znakove kod na glyph id u ugrađenom programu, nakon što je
U slučaju da je to moguće, mora se provesti postupak za utvrđivanje vrijednosti.:
  1. symbolic font with no explicit /Encoding → embedde | | `glyphOutlineForCode(code: int)` → `java.awt.geom.GeneralPath` | Returns the em-normalised, Y-up outline of the glyph selected by {@link #resolveGlyphId(int)} for the given character code, or {@code null} when no embedded program is present or the glyph cannot be resolved. | | `hasExplicitEncoding()` → `boolean` | Returns true if the font dictionary carries an explicit /Encoding (a base-encoding name or an encoding dictionary). | | `getBaseFont()` → `String` | Returns the base font name (/BaseFont). | | `getEncoding()` → `FontEncoding` | Returns the font encoding. | | `getToUnicode()` → `ToUnicodeCMap` | Returns the ToUnicode CMap. | | `getFontDescriptor()` → `FontDescriptor` | Returns the font descriptor. | | `isComposite()` → `boolean` | Returns {@code true} when this is a Type0 composite font whose content-stream encoding uses multi-byte character codes (e.g. | | `getFontMetrics()` → `FontMetrics` | Returns the font metrics. | | `getFontDictionary()` → `PdfDictionary` | Returns the underlying font dictionary. | | `fromDictionary(fontDict: PdfDictionary, parser: PDFParser)` → `PdfFont` | Creates the appropriate PdfFont subclass from a font dictionary. |

    Također pogledajte:

 Hrvatski