Package org.scilab.forge.jlatexmath
Class FontInfo
java.lang.Object
org.scilab.forge.jlatexmath.FontInfo
Contains all the font information for 1 font.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addKern
(char left, char right, float k) void
addLigature
(char left, char right, char ligChar) int
int[]
getExtension
(char ch) getFont()
static Font
getFont
(int id) int
getId()
int
getItId()
float
getKern
(char left, char right, float factor) getLigature
(char left, char right) float[]
getMetrics
(char c) getNextLarger
(char ch) float
getQuad
(float factor) int
char
float
getSpace
(float factor) int
getSsId()
int
getTtId()
float
getXHeight
(float factor) boolean
hasSpace()
void
setBoldId
(int id) void
setExtension
(char ch, int[] ext) void
setItId
(int id) void
setMetrics
(char c, float[] arr) void
setNextLarger
(char ch, char larger, int fontLarger) void
setRomanId
(int id) void
setSkewChar
(char c) void
setSsId
(int id) void
setTtId
(int id)
-
Field Details
-
NUMBER_OF_CHAR_CODES
public static final int NUMBER_OF_CHAR_CODESMaximum number of character codes in a TeX font.- See Also:
-
boldVersion
-
romanVersion
-
ssVersion
-
ttVersion
-
itVersion
-
-
Constructor Details
-
FontInfo
-
-
Method Details
-
addKern
public void addKern(char left, char right, float k) - Parameters:
left
- left characterright
- right characterk
- kern value
-
addLigature
public void addLigature(char left, char right, char ligChar) - Parameters:
left
- left characterright
- right characterligChar
- ligature to replace left and right character
-
getExtension
public int[] getExtension(char ch) -
getKern
public float getKern(char left, char right, float factor) -
getLigature
-
getMetrics
public float[] getMetrics(char c) -
getNextLarger
-
getQuad
public float getQuad(float factor) -
getSkewChar
public char getSkewChar()- Returns:
- the skew character of the font (for the correct positioning of accents)
-
getSpace
public float getSpace(float factor) -
getXHeight
public float getXHeight(float factor) -
hasSpace
public boolean hasSpace() -
setExtension
public void setExtension(char ch, int[] ext) -
setMetrics
public void setMetrics(char c, float[] arr) -
setNextLarger
public void setNextLarger(char ch, char larger, int fontLarger) -
setSkewChar
public void setSkewChar(char c) -
getId
public int getId() -
getBoldId
public int getBoldId() -
getRomanId
public int getRomanId() -
getTtId
public int getTtId() -
getItId
public int getItId() -
getSsId
public int getSsId() -
setSsId
public void setSsId(int id) -
setTtId
public void setTtId(int id) -
setItId
public void setItId(int id) -
setRomanId
public void setRomanId(int id) -
setBoldId
public void setBoldId(int id) -
getFont
-
getFont
-