| Package | Description |
|---|---|
| com.aspose.font |
The com.aspose.font is a root package for all classes that deal with fonts.
|
| com.aspose.font.textutils |
The com.aspose.font.text.utils package provides classes and interfaces for text processing.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CffFont
Represents Compact Font Format (CFF).
|
class |
TtfFont
Represents TrueType Font (TTF).
|
class |
Type1Font
Represents Type1 Font.
|
class |
Type1MetricFont
Type1 metric font implementation.
|
| Modifier and Type | Method and Description |
|---|---|
Font |
CffFont.convert(FontType fontType)
Converts the Font into another format.
|
abstract Font |
Font.convert(FontType fontType)
Converts the Font into another format.
|
Font |
IFont.convert(FontType fontType)
Converts the Font into another format.
|
Font |
TtfFont.convert(FontType fontType)
Converts the Font into another format.
|
Font |
Type1Font.convert(FontType fontType)
Converts the Font into another format.
|
Font |
TtfFont.convert(FontType fontType,
Collection<Integer> limitingCharacterSet)
Converts the Font into another format with limiting character set
Note: TTF Font type is now supported only.
|
Font |
TtfFont.getCffFont()
Gets CFF Font if present.
|
abstract Font |
FontCharactersMerger.getPrimaryFont()
Gets primary font.
|
abstract Font |
FontCharactersMerger.getSecondaryFont()
Gets secondary font.
|
abstract Font |
FontCharactersMerger.mergeFonts(GlyphId[] primaryFontGlyphs,
GlyphId[] secondaryFontGlyphs,
String newFontName)
Merges fonts based on glyphs lists passed.
|
abstract Font |
FontCharactersMerger.mergeFonts(int[] primaryFontCharCodes,
int[] secondaryFontCharCodes,
String newFontName)
Merges fonts based on character codes lists passed.
|
abstract Font |
FontCharactersMerger.mergeFonts(Map<Integer,GlyphId> primaryFontDict,
Map<Integer,GlyphId> secondaryFontDict,
String newFontName)
This method version is designed for cases when you want to set character codes for glyphs in the resultant font explicitly.
|
static Font |
Font.open(FontDefinition fontDefinition)
Opens a font, using FontDefinition object.
|
Font |
FontFactory.open(FontDefinition fontDefinition)
Opens a font, using FontDefinition object.
|
static Font |
Font.open(FontType fontType,
byte[] fontData)
Opens a font, using font type and font data byte array.
|
Font |
FontFactory.open(FontType fontType,
byte[] fontData)
Opens a font, using font type and font data byte array.
|
static Font |
Font.open(FontType fontType,
StreamSource fontStreamSource)
Opens a font, using font type and stream source.
|
Font |
FontFactory.open(FontType fontType,
StreamSource fontStreamSource)
Opens a font, using font type and stream source.
|
static Font |
Font.open(FontType fontType,
String fileName)
Opens a font, using font type and font file name.
|
Font |
FontFactory.open(FontType fontType,
String fileName)
Opens a font, using font type and font file name.
|
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
RenderingUtils.drawText(Font font,
GlyphId[] glyphIds,
double fontSize)
Rendering text in BitMap.
|
static InputStream |
RenderingUtils.drawText(Font font,
GlyphId[] glyphIds,
double fontSize,
RenderingUtils.LineSpacingType lineSpacingType,
int lineSpacingValue,
int maxWidth)
Rendering text in BitMap.
|
static InputStream |
RenderingUtils.drawText(Font font,
String text,
double fontSize)
Rendering text in BitMap.
|
static InputStream |
RenderingUtils.drawText(Font font,
String text,
double fontSize,
RenderingUtils.LineSpacingType lineSpacingType,
int lineSpacingValue,
int maxWidth)
Rendering text in BitMap.
|
| Modifier and Type | Method and Description |
|---|---|
FontCharactersMerger |
TextUtilsFactory.getFontCharactersMerger(Font primaryFont,
Font secondaryFont,
FontType outType) |
static boolean |
TextUtilsFactory.isCffSimpleFontMerging(Font primaryFont,
Font secondaryFont,
FontType outType) |
Copyright © 2025 Aspose. All Rights Reserved.