public class FontNames extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,List<String[]>> |
allNames |
protected static int |
BOLD_FLAG |
protected static int |
CONDENSED_FLAG |
protected static int |
EXTENDED_FLAG |
protected static int |
FW_BLACK |
protected static int |
FW_BOLD |
protected static int |
FW_EXTRABOLD |
protected static int |
FW_EXTRALIGHT |
protected static int |
FW_LIGHT |
protected static int |
FW_MEDIUM |
protected static int |
FW_NORMAL |
protected static int |
FW_SEMIBOLD |
protected static int |
FW_THIN |
protected static int |
FWIDTH_CONDENSED |
protected static int |
FWIDTH_EXPANDED |
protected static int |
FWIDTH_EXTRA_CONDENSED |
protected static int |
FWIDTH_EXTRA_EXPANDED |
protected static int |
FWIDTH_NORMAL |
protected static int |
FWIDTH_SEMI_CONDENSED |
protected static int |
FWIDTH_SEMI_EXPANDED |
protected static int |
FWIDTH_ULTRA_CONDENSED |
protected static int |
FWIDTH_ULTRA_EXPANDED |
protected static int |
ITALIC_FLAG |
protected static int |
OUTLINE_FLAG |
protected static int |
SHADOW_FLAG |
protected static int |
UNDERLINE_FLAG |
Constructor and Description |
---|
FontNames() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowEmbedding() |
protected static int |
convertFontWeight(String weight) |
String |
getCidFontName() |
String[][] |
getFamilyName() |
String |
getFontName() |
int |
getFontWeight() |
int |
getFontWidth() |
String[][] |
getFullName() |
protected int |
getMacStyle() |
String[][] |
getNames(int id)
Extracts the names of the font in all the languages available.
|
String |
getStyle() |
String |
getSubfamily() |
boolean |
isBold() |
boolean |
isCondensed() |
boolean |
isExtended() |
boolean |
isItalic() |
boolean |
isOutline() |
boolean |
isShadow() |
boolean |
isUnderline() |
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) |
void |
setFontWeight(int weight) |
void |
setFontWidth(int width) |
protected void |
setFullName(String fullName) |
protected void |
setFullName(String[][] fullName) |
protected void |
setMacStyle(int macStyle) |
protected void |
setStyle(String style) |
protected void |
setSubfamily(String subfamily) |
protected void |
setSubfamily(String[][] subfamily) |
protected void |
setWeight(int weight) |
protected void |
setWidth(int width) |
protected static final int BOLD_FLAG
protected static final int ITALIC_FLAG
protected static final int UNDERLINE_FLAG
protected static final int OUTLINE_FLAG
protected static final int SHADOW_FLAG
protected static final int CONDENSED_FLAG
protected static final int EXTENDED_FLAG
protected static final int FW_THIN
protected static final int FW_EXTRALIGHT
protected static final int FW_LIGHT
protected static final int FW_NORMAL
protected static final int FW_MEDIUM
protected static final int FW_SEMIBOLD
protected static final int FW_BOLD
protected static final int FW_EXTRABOLD
protected static final int FW_BLACK
protected static final int FWIDTH_ULTRA_CONDENSED
protected static final int FWIDTH_EXTRA_CONDENSED
protected static final int FWIDTH_CONDENSED
protected static final int FWIDTH_SEMI_CONDENSED
protected static final int FWIDTH_NORMAL
protected static final int FWIDTH_SEMI_EXPANDED
protected static final int FWIDTH_EXPANDED
protected static final int FWIDTH_EXTRA_EXPANDED
protected static final int FWIDTH_ULTRA_EXPANDED
public String[][] getNames(int id)
id
- the name id to retrieve in OpenType notation
String[][]
if any names exists, otherwise null
.
public String[][] getFullName()
public String getFontName()
public String getCidFontName()
public String[][] getFamilyName()
public String getStyle()
public String getSubfamily()
public int getFontWeight()
public void setFontWeight(int weight)
public int getFontWidth()
public void setFontWidth(int width)
public boolean allowEmbedding()
public boolean isBold()
public boolean isItalic()
public boolean isUnderline()
public boolean isOutline()
public boolean isShadow()
public boolean isCondensed()
public boolean isExtended()
protected void setFullName(String[][] fullName)
protected void setFullName(String fullName)
protected void setFontName(String psFontName)
protected void setCidFontName(String cidFontName)
protected void setFamilyName(String[][] familyName)
protected void setFamilyName(String familyName)
protected void setStyle(String style)
protected void setSubfamily(String subfamily)
protected void setSubfamily(String[][] subfamily)
protected void setWeight(int weight)
protected void setWidth(int width)
protected void setMacStyle(int macStyle)
protected int getMacStyle()
protected void setAllowEmbedding(boolean allowEmbedding)
protected static int convertFontWeight(String weight)
Copyright © 1998–2016 iText Group NV. All rights reserved.