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: | Prihvat | Opisivanje |
|---|---|---|---|
trueTypeReader | TrueTypeReader | Čitaj. | Vrati TrueTypeReader ako je program font bio učitavan. |
baseFont | String | Čitaj. | Vrati osnovno ime font (/BaseFont). |
encoding | FontEncoding | Čitaj. | Vrati šifru kodiranja. |
toUnicode | ToUnicodeCMap | Čitaj. | Vrati ToUnicode CMap. |
fontDescriptor | FontDescriptor | Čitaj. | Vrati opisnik font. |
composite | boolean | Č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:. | |||
fontMetrics | FontMetrics | Čitaj. | Vrati font metričke. |
fontDictionary | PdfDictionary | Čitaj. | Vrati osnovni rječnik fontova. |
Metoda za primjenu
| Potpis | Opisivanje |
|---|---|
TrueTypeFont(fontDict: PdfDictionary, parser: PDFParser) | Stvara TrueTypeFont iz rječnika fontova. |
decode(charCodes: byte[]) → String | |
getWidth(charCode: int) → double | |
getTrueTypeReader() → TrueTypeReader | Vrati TrueTypeReader ako je program font bio učitavan. |
resolveGlyphId(code: int) → int | Mapiranje 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.: |
- 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: