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

public Class FontMapping<T extends FontBoxFont>

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.pdfbox.pdmodel.font.CIDFontMapping
Imports
org.apache.fontbox.FontBoxFont

A font mapping from a PDF font to a FontBox font.
Author
John Hewson

Field Summary

Modifier and TypeField and Description
private final T
private final boolean

Constructor Summary

AccessConstructor and Description
public
FontMapping(T font, boolean isFallback)

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the mapped font
getFont
()

Returns the mapped, FontBox font.

public boolean

Returns:

true if the mapped font is a fallback
isFallback
()

Returns true if the mapped font is a fallback, i.e. a substitute based on basic font style, such as bold/italic, rather than font name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fontback to summary
private final T font
isFallbackback to summary
private final boolean isFallback

Constructor Detail

FontMappingback to summary
public FontMapping(T font, boolean isFallback)

Method Detail

getFontback to summary
public T getFont()

Returns the mapped, FontBox font. This is never null.

Returns:T

the mapped font

isFallbackback to summary
public boolean isFallback()

Returns true if the mapped font is a fallback, i.e. a substitute based on basic font style, such as bold/italic, rather than font name.

Returns:boolean

true if the mapped font is a fallback