|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.novosoft.dc.rtf.dom.objects.RTFFont
The class supports all properties of fonts in RTF Specification 1.6 except font embedding property.
| Field Summary | |
static byte |
BIDI
Family of Arabic, Hebrew, or other bidirectional fonts |
static byte |
DECOR
Family of decorative fonts |
static byte |
MODERN
Family of fixed-pitch serif and sans serif fonts |
static byte |
NIL
Family of unknown or default fonts |
static byte |
ROMAN
Family of roman, proportionally spaced serif fonts |
static byte |
SCRIPT
Family of script fonts |
static byte |
SWISS
Family of swiss, proportionally spaced sans serif fonts |
static byte |
TECH
Family of technical, symbol, and mathematical fonts |
| Constructor Summary | |
RTFFont(int index)
Construct a font of the required index. |
|
| Method Summary | |
void |
exportTo(org.w3c.dom.Element elem,
boolean usedOnly)
Export the contents of this object to the specified DOM element. |
java.lang.String |
getAltName()
Get the alternative font name |
int |
getCharset()
Get the font charset (-1 means unspecified charset) |
int |
getCodePage()
Get the font code page number (0 means unspecified code page) |
int |
getFamily()
Get the font family |
java.lang.String |
getName()
Get the font name |
java.lang.String |
getNontaggedName()
Get the nontagged font name |
Panose |
getPanoseClassifier()
Get the panose classifier |
int |
getPitch()
Get the font pitch (0 is the default pitch, 1 is the fixed pitch, 2 is the variable pitch) |
int |
index()
Return the index of the font (font number). |
boolean |
inUse()
Return the value of the "in use" tag. |
void |
setAltName(java.lang.String value)
Set the alternative font name |
void |
setCharset(int value)
Set the font charset |
void |
setCodePage(int value)
Set the font code page number |
void |
setFamily(int value)
Set the font family |
void |
setInUse(boolean value)
Set a value for the "in use" tag. |
void |
setName(java.lang.String value)
Set the font name |
void |
setNontaggedName(java.lang.String value)
Set the nontagged font name |
void |
setPanoseClassifier(Panose value)
Set the panose classifier |
void |
setPitch(int value)
Set the font pitch |
java.lang.String |
toString()
Return representation of the font as ANSI string. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final byte NIL
public static final byte ROMAN
public static final byte SWISS
public static final byte MODERN
public static final byte SCRIPT
public static final byte DECOR
public static final byte TECH
public static final byte BIDI
| Constructor Detail |
public RTFFont(int index)
| Method Detail |
public final int index()
public final void setInUse(boolean value)
public final boolean inUse()
public final void setFamily(int value)
public final int getFamily()
public final void setCharset(int value)
public final int getCharset()
public final void setCodePage(int value)
public final int getCodePage()
public final void setPitch(int value)
public final int getPitch()
public final void setPanoseClassifier(Panose value)
public final Panose getPanoseClassifier()
public final void setName(java.lang.String value)
public final java.lang.String getName()
public final void setAltName(java.lang.String value)
public final java.lang.String getAltName()
public final void setNontaggedName(java.lang.String value)
public final java.lang.String getNontaggedName()
public java.lang.String toString()
public void exportTo(org.w3c.dom.Element elem,
boolean usedOnly)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||