CffFont
Inheritance: java.lang.Object, com.aspose.font.Font
public class CffFont extends Font
Stellt das Compact Font Format (CFF) dar.
Methoden
| Methode | Beschreibung |
|---|---|
| convert(FontType fontType) | Konvertiert die Font in ein anderes Format. |
| equals(Object arg0) | |
| getAllGlyphIds() | Gibt ein Array aller Glyph-IDs zurück, die in der Font verfügbar sind. |
| getClass() | |
| getCommonFontsSettings() | Liest Einstellungen, die für CFF-Schriften gemeinsam sind. |
| getEncoding() | Liefert Font‑Kodierung. |
| getFontDefinition() | Liest Schriftdefinition. |
| getFontFamily() | Liefert Font‑Familie. |
| getFontName() | Liefert Font‑Face‑Name. |
| getFontNames() | Liefert Font‑Namen. |
| getFontSaver() | Liefert Font‑Speicherfunktionalität. |
| getFontStyle() | Liefert Font‑Stil. |
| getFontType() | Liefert Font‑Typ. |
| getGlyphAccessor() | Font‑Glyph‑Zugriff. |
| getGlyphById(GlyphId id) | Gibt Glyph nach Glyph-ID zurück. |
| getGlyphById(String glyphName) | Gibt Glyph nach Glyph-Namen zurück. |
| getGlyphById(long id) | Gibt Glyph nach Glyph-ID zurück. |
| getGlyphIdType() | Liefert Glyph-ID‑Typ‑Spezifikation. |
| getGlyphsForText(String text) | Liest Glyphenrepräsentation für Text. |
| getIndexDataProvider(CffIndexProviderType indexType) | Liest Anbieter für den angegebenen CFF INDEX-Strukturtyp. |
| getMetrics() | Liefert Font‑Metriken. |
| getNumGlyphs() | Ermittelt die Anzahl der Glyphen im Font. |
| getPostscriptNames() | Liest Postscript-Schriftnamen. |
| getStyle() | Liefert Font‑Stil. |
| getTopDictDataProvider() | |
| hashCode() | |
| isCidKeyedFont() | Liest Wert, der anzeigt, dass die Schrift cid-gebunden ist. |
| notify() | |
| notifyAll() | |
| open(FontDefinition fontDefinition) | Öffnet einen Font mithilfe eines FontDefinition-Objekts. |
| open(FontType fontType, byte[] fontData) | Öffnet einen Font mithilfe des Font-Typs und eines Byte-Arrays mit Font-Daten. |
| open(FontType fontType, StreamSource fontStreamSource) | Öffnet einen Font mithilfe des Font-Typs und einer Stream-Quelle. |
| open(FontType fontType, String fileName) | Öffnet einen Font mithilfe des Font-Typs und des Font-Dateinamens. |
| save(OutputStream stream) | Speichert den Font im Originalformat. |
| save(String fileName) | Speichert den Font im Originalformat. |
| saveToFormat(OutputStream stream, FontSavingFormats outFormat) | Speichert den Font im angegebenen Format. |
| setCommonFontsSettings(CffFontsSettings value) | Legt Einstellungen fest, die für CFF-Schriften gemeinsam sind. |
| setFontFamily(String value) | Der Setter für die Schriftfamilie ist noch nicht implementiert. |
| setFontName(String value) | Der Setter für den Schriftartnamen ist noch nicht implementiert. |
| setStyle(String value) | Der Setter für den Stil ist noch nicht implementiert. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
convert(FontType fontType)
public Font convert(FontType fontType)
Konvertiert den Font in ein anderes Format. Hinweis: Der TTF-Fonttyp wird derzeit nur unterstützt.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| fontType | FontType | Font-Formattyp, in den konvertiert werden soll. |
Returns: Font - Font converted into new format.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getAllGlyphIds()
public GlyphId[] getAllGlyphIds()
Gibt ein Array aller Glyph-IDs zurück, die in der Schrift verfügbar sind. Eine Glyph-ID ist eine eindeutige Nummer für ein Glyph, die vom Schrifttyp abhängt. Eine CFF-Schrift-Glyph-ID kann eine Instanz der Klasse ( GlyphStringId ) oder der Klasse ( GlyphUInt32Id ) sein.
Returns: com.aspose.font.GlyphId[]
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getCommonFontsSettings()
public CffFontsSettings getCommonFontsSettings()
Liest Einstellungen, die für CFF-Schriften gemeinsam sind. Diese Einstellungen werden in verschiedenen Szenarien verwendet und können für jede einzelne Schrift geändert werden.
Returns: CffFontsSettings - Font definition.
getEncoding()
public IFontEncoding getEncoding()
Liefert Font‑Kodierung.
Returns: IFontEncoding - Font encoding.
getFontDefinition()
public FontDefinition getFontDefinition()
Liest Schriftdefinition.
Returns: FontDefinition - Font definition.
getFontFamily()
public String getFontFamily()
Liefert Font‑Familie.
Returns: java.lang.String - Font‑Familie.
getFontName()
public String getFontName()
Liefert Font‑Face‑Name.
Returns: java.lang.String - Font‑Face‑Name.
getFontNames()
public MultiLanguageString getFontNames()
Liefert Font‑Namen.
Returns: MultiLanguageString - Font names.
getFontSaver()
public IFontSaver getFontSaver()
Liefert Font‑Speicherfunktionalität.
Returns: IFontSaver - Font save functionality.
getFontStyle()
public int getFontStyle()
Ermittelt den Font-Stil. Dies ist ein Wert, der berechnet und in einem generalisierten Typ dargestellt wird.
Returns: int - Font-Stil. In der Regel eine Kombination von Konstanten‑Flag‑Werten der FontStyle‑Klasse oder 0.
getFontType()
public FontType getFontType()
Liest Schrifttyp. Gibt den Wert FontType.CFF zurück.
Returns: FontType - Font type.
getGlyphAccessor()
public IGlyphAccessor getGlyphAccessor()
Schriftzeichen-Glyph-Zugriff. Ruft Glyphs und Glyph-Identifikatoren ab.
Returns: IGlyphAccessor - Font glyph accessor.
getGlyphById(GlyphId id)
public Glyph getGlyphById(GlyphId id)
Gibt ein Glyph anhand seiner Glyph-ID zurück. Eine Glyph-ID ist eine eindeutige Nummer für ein Glyph, die vom Schrifttyp abhängt. Eine CFF-Schrift-Glyph-ID kann eine Instanz der Klasse ( GlyphStringId ) oder der Klasse ( GlyphInt32Id ) sein.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| id | GlyphId | Glyph-ID. |
Returns: Glyph - Glyph.
getGlyphById(String glyphName)
public Glyph getGlyphById(String glyphName)
Gibt Glyph nach Glyph-Namen zurück.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| glyphName | java.lang.String | Glyph-Name. |
Returns: Glyph - Glyph.
getGlyphById(long id)
public Glyph getGlyphById(long id)
Gibt Glyph nach Glyph-ID zurück.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| id | long | Glyph-ID. |
Returns: Glyph - Glyph.
getGlyphIdType()
public GlyphIdType getGlyphIdType()
Liefert Glyph-ID‑Typ‑Spezifikation.
Returns: GlyphIdType - Glyph id type specification.
getGlyphsForText(String text)
public GlyphId[] getGlyphsForText(String text)
Liest Glyphenrepräsentation für Text.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| text | java.lang.String | Eingabetext. |
Returns: com.aspose.font.GlyphId[] – GlyphId-Array.
getIndexDataProvider(CffIndexProviderType indexType)
public ICffIndexDataProvider getIndexDataProvider(CffIndexProviderType indexType)
Liest Anbieter für den angegebenen CFF INDEX-Strukturtyp.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| indexType | CffIndexProviderType | Typ der INDEX-Struktur. |
Returns: ICffIndexDataProvider - Implementation of ( ICffIndexDataProvider ) interface.
getMetrics()
public IFontMetrics getMetrics()
Liefert Font‑Metriken.
Returns: IFontMetrics - Font metrics.
getNumGlyphs()
public int getNumGlyphs()
Ermittelt die Anzahl der Glyphen im Font.
Returns: int – Anzahl der Glyphs in der Schrift.
getPostscriptNames()
public MultiLanguageString getPostscriptNames()
Liest Postscript-Schriftnamen.
Returns: MultiLanguageString - Postscript Font names.
getStyle()
public String getStyle()
Ermittelt den Schriftstil. Dies ist ein Roh-String-Wert, der von der Schriftdatei bereitgestellt wird.
Returns: java.lang.String – Schriftstil.
getTopDictDataProvider()
public TopDictDataProvider getTopDictDataProvider()
Returns: TopDictDataProvider
hashCode()
public native int hashCode()
Returns: int
isCidKeyedFont()
public boolean isCidKeyedFont()
Liest Wert, der anzeigt, dass die Schrift cid-gebunden ist.
Returns: boolean - Wert, der anzeigt, dass die Schrift cid-gebunden ist.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
open(FontDefinition fontDefinition)
public static Font open(FontDefinition fontDefinition)
Öffnet einen Font mithilfe eines FontDefinition-Objekts.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| fontDefinition | FontDefinition | Schriftdefinitions-Objekt. |
Returns: Font - Font loaded.
open(FontType fontType, byte[] fontData)
public static Font open(FontType fontType, byte[] fontData)
Öffnet einen Font mithilfe des Font-Typs und eines Byte-Arrays mit Font-Daten.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| fontType | FontType | Schrifttyp. |
| fontData | byte[] | Byte-Array, aus dem die Schrift geladen wird. |
Returns: Font - Font loaded.
open(FontType fontType, StreamSource fontStreamSource)
public static Font open(FontType fontType, StreamSource fontStreamSource)
Öffnet einen Font mithilfe des Font-Typs und einer Stream-Quelle.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| fontType | FontType | Schrifttyp. |
| fontStreamSource | StreamSource | Stream-Quelle für die Schrift. |
Returns: Font - Font loaded.
open(FontType fontType, String fileName)
public static Font open(FontType fontType, String fileName)
Öffnet einen Font mithilfe des Font-Typs und des Font-Dateinamens.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| fontType | FontType | Schrifttyp. |
| fileName | java.lang.String | Schriftdateiname. |
Returns: Font - Font loaded.
save(OutputStream stream)
public void save(OutputStream stream)
Speichert den Font im Originalformat.
Note: following Font types are supported for saving: New TTF fonts; TTF Font subsets; CFF Font subsets; Type1 Font subsets.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| stream | java.io.OutputStream | Stream zum Speichern der Schrift. |
save(String fileName)
public void save(String fileName)
Speichert den Font im Originalformat.
Note: following Font types are supported for saving: New TTF fonts; TTF Font subsets; CFF Font subsets; Type1 Font subsets.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| fileName | java.lang.String | Datei zum Speichern der Schrift. |
saveToFormat(OutputStream stream, FontSavingFormats outFormat)
public void saveToFormat(OutputStream stream, FontSavingFormats outFormat)
Speichert den Font im angegebenen Format.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| stream | java.io.OutputStream | Stream zum Speichern der Schrift |
| outFormat | FontSavingFormats | gewünschtes Format |
setCommonFontsSettings(CffFontsSettings value)
public void setCommonFontsSettings(CffFontsSettings value)
Legt Einstellungen fest, die für CFF-Schriften gemeinsam sind.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| value | CffFontsSettings | Schriftdefinition. |
setFontFamily(String value)
public void setFontFamily(String value)
Der Setter für die Schriftfamilie ist noch nicht implementiert.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Wert | java.lang.String | Neue Schriftfamilie. |
setFontName(String value)
public void setFontName(String value)
Der Setter für den Schriftartnamen ist noch nicht implementiert.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Wert | java.lang.String | Neuer Schriftartname. |
setStyle(String value)
public void setStyle(String value)
Der Setter für den Stil ist noch nicht implementiert.
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| Wert | java.lang.String | Neuer Schriftstil. |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parameter | Typ | Beschreibung |
|---|---|---|
| arg0 | long | |
| arg1 | int |