|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TeXFont
An interface representing a "TeXFont", which is responsible for all the necessary fonts and font information.
Field Summary | |
---|---|
static int |
NO_FONT
|
Method Summary | |
---|---|
TeXFont |
copy()
|
TeXFont |
deriveFont(float pointSize)
Derives a new TeXFont object with the given point size |
float |
getAxisHeight(int style)
|
float |
getBigOpSpacing1(int style)
|
float |
getBigOpSpacing2(int style)
|
float |
getBigOpSpacing3(int style)
|
float |
getBigOpSpacing4(int style)
|
float |
getBigOpSpacing5(int style)
|
boolean |
getBold()
|
Char |
getChar(CharFont cf,
int style)
Get a Char-object for this specific character containing the metric information |
Char |
getChar(char c,
java.lang.String textStyle,
int style)
Get a Char-object specifying the given character in the given text style with metric information depending on the given "style". |
Char |
getChar(java.lang.String name,
int style)
Get a Char-object for the given symbol with metric information depending on "style". |
Char |
getDefaultChar(char c,
int style)
Get a Char-object specifying the given character in the default text style with metric information depending on the given "style". |
float |
getDefaultRuleThickness(int style)
|
float |
getDenom1(int style)
|
float |
getDenom2(int style)
|
Extension |
getExtension(Char c,
int style)
Get an Extension-object for the given Char containing the 4 possible parts to build an arbitrary large variant. |
boolean |
getIt()
|
float |
getKern(CharFont left,
CharFont right,
int style)
Get the kern value to be inserted between the given characters in the given style. |
CharFont |
getLigature(CharFont left,
CharFont right)
Get the ligature that replaces both characters (if any). |
int |
getMuFontId()
|
Char |
getNextLarger(Char c,
int style)
Get the next larger version of the given character. |
float |
getNum1(int style)
|
float |
getNum2(int style)
|
float |
getNum3(int style)
|
float |
getQuad(int style,
int fontCode)
|
boolean |
getRoman()
|
float |
getScaleFactor()
|
float |
getSize()
|
float |
getSkew(CharFont cf,
int style)
Get the kern amount of the character defined by the given CharFont followed by the "skewchar" of it's font. |
float |
getSpace(int style)
|
boolean |
getSs()
|
float |
getSub1(int style)
|
float |
getSub2(int style)
|
float |
getSubDrop(int style)
|
float |
getSup1(int style)
|
float |
getSup2(int style)
|
float |
getSup3(int style)
|
float |
getSupDrop(int style)
|
boolean |
getTt()
|
float |
getXHeight(int style,
int fontCode)
|
boolean |
hasNextLarger(Char c)
|
boolean |
hasSpace(int font)
|
boolean |
isExtensionChar(Char c)
|
TeXFont |
scaleFont(float factor)
|
void |
setBold(boolean bold)
|
void |
setIt(boolean it)
|
void |
setRoman(boolean rm)
|
void |
setSs(boolean ss)
|
void |
setTt(boolean tt)
|
Field Detail |
---|
static final int NO_FONT
Method Detail |
---|
TeXFont deriveFont(float pointSize)
TeXFont
object with the given point size
pointSize
- the new size (in points) of the derived TeXFont
TeXFont
with the new sizeTeXFont scaleFont(float factor)
float getScaleFactor()
float getAxisHeight(int style)
float getBigOpSpacing1(int style)
float getBigOpSpacing2(int style)
float getBigOpSpacing3(int style)
float getBigOpSpacing4(int style)
float getBigOpSpacing5(int style)
Char getChar(char c, java.lang.String textStyle, int style) throws TextStyleMappingNotFoundException
c
- alphanumeric charactertextStyle
- the text style in which the character should be drawnstyle
- the style in which the atom should be drawn
TextStyleMappingNotFoundException
- if there's no text style defined with
the given nameChar getChar(CharFont cf, int style)
cf
- CharFont-object determining a specific character of a specific fontstyle
- the style in which the atom should be drawn
Char getChar(java.lang.String name, int style) throws SymbolMappingNotFoundException
name
- the symbol namestyle
- the style in which the atom should be drawn
SymbolMappingNotFoundException
- if there's no symbol defined with the given
nameChar getDefaultChar(char c, int style)
c
- alphanumeric characterstyle
- the style in which the atom should be drawn
float getDefaultRuleThickness(int style)
float getDenom1(int style)
float getDenom2(int style)
Extension getExtension(Char c, int style)
c
- a Char-object for a specific characterstyle
- the style in which the atom should be drawn
float getKern(CharFont left, CharFont right, int style)
left
- left characterright
- right characterstyle
- the style in which the atom should be drawn
CharFont getLigature(CharFont left, CharFont right)
left
- left characterright
- right character
int getMuFontId()
Char getNextLarger(Char c, int style)
c
- characterstyle
- the style in which the atom should be drawn
float getNum1(int style)
float getNum2(int style)
float getNum3(int style)
float getQuad(int style, int fontCode)
float getSize()
float getSkew(CharFont cf, int style)
cf
- the character and it's font above which an accent has to be placedstyle
- the render style
float getSpace(int style)
float getSub1(int style)
float getSub2(int style)
float getSubDrop(int style)
float getSup1(int style)
float getSup2(int style)
float getSup3(int style)
float getSupDrop(int style)
float getXHeight(int style, int fontCode)
boolean hasNextLarger(Char c)
c
- a character
boolean hasSpace(int font)
void setBold(boolean bold)
boolean getBold()
void setRoman(boolean rm)
boolean getRoman()
void setTt(boolean tt)
boolean getTt()
void setIt(boolean it)
boolean getIt()
void setSs(boolean ss)
boolean getSs()
boolean isExtensionChar(Char c)
c
- a character
TeXFont copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |