Package com.itextpdf.io.font
Class FontNames
java.lang.Object
com.itextpdf.io.font.FontNames
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
String[][]
Gets font stretch in css notation (font-stretch property).int
String[][]
protected int
String[][]
getNames
(int id) Extracts the names of the font in all the languages available.getStyle()
boolean
isBold()
boolean
boolean
boolean
isItalic()
boolean
boolean
isShadow()
boolean
protected void
setAllNames
(Map<Integer, List<String[]>> allNames) protected void
setAllowEmbedding
(boolean allowEmbedding) protected void
setCidFontName
(String cidFontName) protected void
setFamilyName
(String familyName) protected void
setFamilyName
(String[][] familyName) protected void
setFontName
(String psFontName) protected void
setFontStretch
(String fontStretch) Sets font stretch in css notation (font-stretch property).protected void
setFontWeight
(int weight) Sets font weight.protected void
setFullName
(String fullName) protected void
setFullName
(String[][] fullName) protected void
setMacStyle
(int macStyle) Sets Open Type head.macStyle.protected void
protected void
setSubfamily
(String subfamily) protected void
setSubfamily
(String[][] subfamily) toString()
-
Field Details
-
allNames
-
-
Constructor Details
-
FontNames
public FontNames()
-
-
Method Details
-
getNames
Extracts the names of the font in all the languages available.- Parameters:
-
id
- the name id to retrieve in OpenType notation - Returns:
-
not empty
String[][]
if any names exists, otherwisenull
.
-
getFullName
-
getFontName
-
getCidFontName
-
getFamilyName
-
getStyle
-
getSubfamily
-
getFontWeight
public int getFontWeight() -
setFontWeight
protected void setFontWeight(int weight) Sets font weight.- Parameters:
-
weight
- integer form 100 to 900. SeeFontWeights
.
-
getFontStretch
Gets font stretch in css notation (font-stretch property).- Returns:
-
One of
FontStretches
values.
-
setFontStretch
Sets font stretch in css notation (font-stretch property).- Parameters:
-
fontStretch
-FontStretches
.
-
allowEmbedding
public boolean allowEmbedding() -
isBold
public boolean isBold() -
isItalic
public boolean isItalic() -
isUnderline
public boolean isUnderline() -
isOutline
public boolean isOutline() -
isShadow
public boolean isShadow() -
isCondensed
public boolean isCondensed() -
isExtended
public boolean isExtended() -
setAllNames
-
setFullName
-
setFullName
-
setFontName
-
setCidFontName
-
setFamilyName
-
setFamilyName
-
setStyle
-
setSubfamily
-
setSubfamily
-
setMacStyle
protected void setMacStyle(int macStyle) Sets Open Type head.macStyle.- Parameters:
-
macStyle
- macStyle flag
-
getMacStyle
protected int getMacStyle() -
setAllowEmbedding
protected void setAllowEmbedding(boolean allowEmbedding) -
toString
-