BasicTextShaperCache
Contents
[
Hide
]Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.words.ITextShaperFactory
public class BasicTextShaperCache implements ITextShaperFactory
Implements basic cache for ITextShaper instances. This class is thread-safe.
Constructors
Constructor | Description |
---|---|
BasicTextShaperCache(ITextShaperFactory factory) | Wraps factory and caches ITextShaperFactory.getTextShaper(java.lang.String, int) results. |
Methods
Method | Description |
---|---|
dispose() | |
getTextShaper(String fontId, byte[] fontBlob, int faceIndex) | |
getTextShaper(String fontPath, int faceIndex) |
BasicTextShaperCache(ITextShaperFactory factory)
public BasicTextShaperCache(ITextShaperFactory factory)
Wraps factory and caches ITextShaperFactory.getTextShaper(java.lang.String, int) results.
Parameters:
Parameter | Type | Description |
---|---|---|
factory | ITextShaperFactory |
dispose()
public void dispose()
getTextShaper(String fontId, byte[] fontBlob, int faceIndex)
public ITextShaper getTextShaper(String fontId, byte[] fontBlob, int faceIndex)
Returns new instance of a text shaper for the font represented by fontBlob and faceIndex .
Parameters:
Parameter | Type | Description |
---|---|---|
fontId | java.lang.String | |
fontBlob | byte[] | |
faceIndex | int |
Returns: ITextShaper
getTextShaper(String fontPath, int faceIndex)
public ITextShaper getTextShaper(String fontPath, int faceIndex)
Returns new instance of a text shaper for the font specified by fontPath and faceIndex .
Parameters:
Parameter | Type | Description |
---|---|---|
fontPath | java.lang.String | |
faceIndex | int |
Returns: ITextShaper