Package com.itextpdf.io.font
Class FontProgramDescriptor
java.lang.Object
com.itextpdf.io.font.FontProgramDescriptor
Base font descriptor.
-
Method Summary
Modifier and TypeMethodDescriptionGet extra family name if exists.Gets the lowercase preferred family name used for matching.Gets the font name.Gets the lowercase name used for case-insensitive matching.intGets the font weight.Gets lowercase full names from every available localization.Gets the lowercase full font name used for case-insensitive matching.Gets full names from supported English OpenType naming records.floatGets the italic angle.getStyle()Gets the style name.booleanisBold()Checks whether the Macintosh style flags declare bold.booleanisItalic()Checks whether the Macintosh style flags declare italic.booleanChecks whether the font is fixed pitch.
-
Method Details
-
getFontName
Gets the font name.- Returns:
- font name
-
getStyle
Gets the style name.- Returns:
- style string
-
getFontWeight
public int getFontWeight()Gets the font weight.- Returns:
- normalized font weight
-
getItalicAngle
public float getItalicAngle()Gets the italic angle.- Returns:
- counterclockwise degrees from vertical
-
isMonospace
public boolean isMonospace()Checks whether the font is fixed pitch.- Returns:
-
truefor a monospaced font
-
isBold
public boolean isBold()Checks whether the Macintosh style flags declare bold.- Returns:
-
truewhen bold is declared
-
isItalic
public boolean isItalic()Checks whether the Macintosh style flags declare italic.- Returns:
-
truewhen italic is declared
-
getFullNameLowerCase
Gets the lowercase full font name used for case-insensitive matching.- Returns:
- lowercase full name
-
getFontNameLowerCase
Gets the lowercase name used for case-insensitive matching.- Returns:
- lowercase font name
-
getFamilyNameLowerCase
Gets the lowercase preferred family name used for matching.- Returns:
-
lowercase family name, or
nullwhen absent
-
getFamilyName2LowerCase
Get extra family name if exists.- Returns:
-
extra family name if exists in the font,
nullotherwise.
-
getFullNameAllLangs
Gets lowercase full names from every available localization.- Returns:
- internally retained set of localized full names
-
getFullNamesEnglishOpenType
Gets full names from supported English OpenType naming records.- Returns:
- internally retained set of matching full names
-