Package com.orsonpdf
Class FontKey
java.lang.Object
com.orsonpdf.FontKey
A key to represent a Java2D font. This is used to maintain a mapping
between Java2D fonts and PDF fonts.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
The key name. -
isBold
private final boolean isBoldFlag for bold. -
isItalic
private final boolean isItalicFlag for italic.
-
-
Constructor Details
-
FontKey
Creates a new font key.- Parameters:
name
- the name.bold
- the bold flag.italic
- the italic flag.- See Also:
-
-
Method Details
-
createFontKey
Creates a new key for a given font.- Parameters:
f
- the font (null
not permitted).- Returns:
- The font key.
-
equals
Tests this key for equality with an arbitrary object. -
hashCode
public int hashCode()Returns a hash code for this instance. -
toString
Returns a string representation of this instance, primarily for debugging purposes.
-