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