Interface FontRecord
-
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
FontSource
- All Known Implementing Classes:
AfmFontRecord
,AWTFontRecord
,CompoundFontRecord
,ITextBuiltInFontRecord
,ITextFontRecord
,MonospaceFontRecord
,PfmFontRecord
,TrueTypeFontRecord
public interface FontRecord extends Serializable
Creation-Date: 07.11.2005, 19:07:09- Author:
- Thomas Morgner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FontFamily
getFamily()
Returns the family for this record.FontIdentifier
getIdentifier()
boolean
isBold()
Returns true, if this font corresponds to a bold version of the font.boolean
isItalic()
Returns true, if this font includes italic glyphs.boolean
isOblique()
Returns tue, if this font's italic mode is in fact some sort of being oblique.
-
-
-
Method Detail
-
getFamily
FontFamily getFamily()
Returns the family for this record.- Returns:
- the font family.
-
isBold
boolean isBold()
Returns true, if this font corresponds to a bold version of the font. A font-renderer that renders a font that does not provide a bold face must emulate the boldness using other means. The font should *not* lie here and say 'true', if it does not contain bold glyphs, as this will make it impossible to differentiate between native bold fonts and fonts for which the renderer will have to provide boldness.- Returns:
- true, if the font provides bold glyphs, false otherwise.
-
isItalic
boolean isItalic()
Returns true, if this font includes italic glyphs. Italics is different from oblique, as certain glyphs (most notably the lowercase 'f') will have a different appearance, making the font look more like a script font. A font-renderer that renders a font that does not provide an italic face must emulate the italics using other means. The font should *not* lie here and say 'true', if it does not contain italic glyphs, as this will make it impossible to differentiate between native italics fonts and fonts for which the renderer will have to provide the italics style.- Returns:
- true, if the font is italic.
-
isOblique
boolean isOblique()
Returns tue, if this font's italic mode is in fact some sort of being oblique. An oblique font's glyphs are sheared, but they are not made to look more script like. A font-renderer that renders a font that does not provide a oblique face must emulate the oblique-mode using other means. The font should *not* lie here and say 'true', if it does not contain oblique glyphs, as this will make it impossible to differentiate between native oblique fonts and fonts for which the renderer will have to provide the oblique style.- Returns:
- true, if the font is oblique. All italic fonts are also oblique.
-
getIdentifier
FontIdentifier getIdentifier()
-
-