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 TypeMethodDescriptionvoidaddKern(char left, char right, float k) voidaddLigature(char left, char right, char ligChar) intint[]getExtension(char ch) static FontInfogetFontInfo(int id) The outlines of the glyphs of this font (read from glyphs.bin), or null if there are none for it.intgetItId()floatgetKern(char left, char right, float factor) getLigature(char left, char right) float[]getMetrics(char c) getNextLarger(char ch) floatgetQuad(float factor) intcharfloatgetSpace(float factor) intgetSsId()intgetTtId()floatgetXHeight(float factor) booleanhasSpace()voidsetBoldId(int id) voidsetExtension(char ch, int[] ext) voidsetItId(int id) voidsetMetrics(char c, float[] arr) voidsetNextLarger(char ch, char larger, int fontLarger) voidsetRomanId(int id) voidsetSkewChar(char c) voidsetSsId(int id) voidsetTtId(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) -
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) -
getGlyphs
The outlines of the glyphs of this font (read from glyphs.bin), or null if there are none for it. -
getFontInfo
-