Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.font

public final Class CIDFontMapping

extends FontMapping<OpenTypeFont>
Class Inheritance
Imports
org.apache.fontbox.FontBoxFont, org.apache.fontbox.ttf.OpenTypeFont

A CIDFontMapping is a kind of FontMapping which allows for an additional TrueTypeFont substitute to be provided if a CID font is not available.
Author
John Hewson

Field Summary

Modifier and TypeField and Description
private final FontBoxFont

Constructor Summary

AccessConstructor and Description
public
CIDFontMapping(OpenTypeFont font, FontBoxFont fontBoxFont, boolean isFallback)

Method Summary

Modifier and TypeMethod and Description
public FontBoxFont

Returns:

the mapped TrueType font or null
getTrueTypeFont
()

Returns a TrueType font when isCIDFont() is true, otherwise null.

public boolean

Returns:

true if the mapped font is a CID font
isCIDFont
()

Returns true if this is a CID font.

Inherited from org.apache.pdfbox.pdmodel.font.FontMapping:
getFontisFallback

Field Detail

ttfback to summary
private final FontBoxFont ttf

Constructor Detail

CIDFontMappingback to summary
public CIDFontMapping(OpenTypeFont font, FontBoxFont fontBoxFont, boolean isFallback)

Method Detail

getTrueTypeFontback to summary
public FontBoxFont getTrueTypeFont()

Returns a TrueType font when isCIDFont() is true, otherwise null.

Returns:FontBoxFont

the mapped TrueType font or null

isCIDFontback to summary
public boolean isCIDFont()

Returns true if this is a CID font.

Returns:boolean

true if the mapped font is a CID font