BasicTextShaperCache

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

ConstructorDescription
BasicTextShaperCache(ITextShaperFactory factory)Wraps factory and caches ITextShaperFactory.getTextShaper(java.lang.String, int) results.

Methods

MethodDescription
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:

ParameterTypeDescription
factoryITextShaperFactory

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:

ParameterTypeDescription
fontIdjava.lang.String
fontBlobbyte[]
faceIndexint

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:

ParameterTypeDescription
fontPathjava.lang.String
faceIndexint

Returns: ITextShaper