public class PCLSoftFontManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PCLSoftFontManager.PCLTextSegment |
Constructor and Description |
---|
PCLSoftFontManager(Map<Typeface,PCLFontReader> fontReaderMap) |
Modifier and Type | Method and Description |
---|---|
byte[] |
assignFontID(int fontID) |
PCLSoftFont |
getSoftFont(Typeface font,
String text)
Finds a soft font associated with the given typeface.
|
PCLSoftFont |
getSoftFontFromID(int index) |
int |
getSoftFontID(Typeface tf) |
List<PCLSoftFontManager.PCLTextSegment> |
getTextSegments(String text,
Typeface font) |
ByteArrayOutputStream |
makeSoftFont(Typeface font,
String text) |
public PCLSoftFontManager(Map<Typeface,PCLFontReader> fontReaderMap)
public ByteArrayOutputStream makeSoftFont(Typeface font, String text) throws IOException
IOException
public byte[] assignFontID(int fontID) throws IOException
IOException
public PCLSoftFont getSoftFont(Typeface font, String text)
font
- The typeface associated with the soft fontpublic PCLSoftFont getSoftFontFromID(int index)
public int getSoftFontID(Typeface tf) throws IOException
IOException
public List<PCLSoftFontManager.PCLTextSegment> getTextSegments(String text, Typeface font)
Copyright © 2025 Apache Software Foundation. All rights reserved.