iText 9.8.0 API
iText.IO.Font.FontCacheKey Class Reference

Defines an equality key for a cached font program source. More...

Static Public Member Functions

static FontCacheKey  Create (String fontName)
  Creates a cache key for a font name. More...
 
static FontCacheKey  Create (String fontName, int ttcIndex)
  Creates a cache key for a font collection member identified by name. More...
 
static FontCacheKey  Create (byte[] fontProgram)
  Creates a cache key for font program bytes. More...
 
static FontCacheKey  Create (byte[] fontProgram, int ttcIndex)
  Creates a cache key for a font collection member identified by bytes. More...
 

Detailed Description

Defines an equality key for a cached font program source.

Defines an equality key for a cached font program source.

See FontCache

Member Function Documentation

◆ Create() [1/4]

static FontCacheKey iText.IO.Font.FontCacheKey.Create ( byte[]  fontProgram )
inlinestatic

Creates a cache key for font program bytes.

Parameters
fontProgram the font bytes, possibly null
Returns
a new byte based cache key

◆ Create() [2/4]

static FontCacheKey iText.IO.Font.FontCacheKey.Create ( byte[]  fontProgram,
int  ttcIndex 
)
inlinestatic

Creates a cache key for a font collection member identified by bytes.

Parameters
fontProgram the collection bytes, possibly null
ttcIndex the collection member index
Returns
a new collection member cache key

◆ Create() [3/4]

static FontCacheKey iText.IO.Font.FontCacheKey.Create ( String  fontName )
inlinestatic

Creates a cache key for a font name.

Parameters
fontName the font name, possibly null
Returns
a new name based cache key

◆ Create() [4/4]

static FontCacheKey iText.IO.Font.FontCacheKey.Create ( String  fontName,
int  ttcIndex 
)
inlinestatic

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