public class FontNames extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,List<String[]>> |
allNames |
Constructor and Description |
---|
FontNames() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowEmbedding() |
String |
getCidFontName() |
String[][] |
getFamilyName() |
String |
getFontName() |
String |
getFontStretch()
Gets font stretch in css notation (font-stretch property).
|
int |
getFontWeight() |
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) |
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 |
setStyle(String style) |
protected void |
setSubfamily(String subfamily) |
protected void |
setSubfamily(String[][] subfamily) |
String |
toString() |
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()
protected void setFontWeight(int weight)
weight
- integer form 100 to 900. See FontWeights
.
public String getFontStretch()
FontStretches
values.
protected void setFontStretch(String fontStretch)
fontStretch
- FontStretches
.
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 setMacStyle(int macStyle)
FontMacStyleFlags
macStyle
-
protected int getMacStyle()
protected void setAllowEmbedding(boolean allowEmbedding)
Copyright © 1998–2018 iText Group NV. All rights reserved.