Package com.itextpdf.io.font
Class FontCacheKey
java.lang.Object
com.itextpdf.io.font.FontCacheKey
Defines an equality key for a cached font program source.
See FontCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FontCacheKeycreate(byte[] fontProgram) Creates a cache key for font program bytes.static FontCacheKeycreate(byte[] fontProgram, int ttcIndex) Creates a cache key for a font collection member identified by bytes.static FontCacheKeyCreates a cache key for a font name.static FontCacheKeyCreates a cache key for a font collection member identified by name.
-
Constructor Details
-
FontCacheKey
public FontCacheKey()
-
-
Method Details
-
create
Creates a cache key for a font name.- Parameters:
-
fontName- the font name, possiblynull - Returns:
- a new name based cache key
-
create
Creates a cache key for a font collection member identified by name.- Parameters:
-
fontName- the collection source name -
ttcIndex- the collection member index - Returns:
- a new collection member cache key
-
create
Creates a cache key for font program bytes.- Parameters:
-
fontProgram- the font bytes, possiblynull - Returns:
- a new byte based cache key
-
create
Creates a cache key for a font collection member identified by bytes.- Parameters:
-
fontProgram- the collection bytes, possiblynull -
ttcIndex- the collection member index - Returns:
- a new collection member cache key
-