|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.Boxed | +--org.gnu.pango.FontDescription
The FontDescription represents the description of an ideal font. This is used both to list what fonts are available on the system and also for specifying the characteristics of a font to load.
Constructor Summary | |
FontDescription()
Create a new FontDescription. |
|
FontDescription(int handle)
Create a new FontDescription using a handle from native methods. |
|
FontDescription(java.lang.String str)
Create a new FontDescription from a string in the form "[FAMILY-LIST][STYLE-OPTIONS][SIZE]" where FAMILY-LIST is a comma separated list of families optionally terminated by a comma, STYLE-OPTIONS is a whitespace separated list of words where each WORD describes one of style, varient, weight, or stretch and SIZE is a decimal number (size in points). |
Method Summary | |
java.lang.String |
getFamily()
Gets the family name field of a font description. |
FontMask |
getSetFields()
Determines which fields in a font description have been set. |
int |
getSize()
Gets the size field of a font description. |
Stretch |
getStretch()
Gets the stretch field of a font description. |
Style |
getStyle()
Gets the style field of a PangoFontDescription. |
Variant |
getVariant()
Gets the variant field of the description |
Weight |
getWeight()
Gets the weight field of a font description. |
void |
replace(FontDescription descToMerge,
boolean replaceExisting)
Merges the fields that are set in desc_to_merge into the fields in desc. |
void |
setFamily(java.lang.String family)
Sets the family name field of a font description. |
void |
setSize(int size)
Sets the size field of a font description. |
void |
setStretch(Stretch stretch)
Sets the stretch field of a font description. |
void |
setStyle(Style style)
Sets the style field of a PangoFontDescription. |
void |
setVariant(Variant var)
Sets the variant field of a font description. |
void |
setWeight(Weight weight)
Sets the weight field of a font description. |
java.lang.String |
toString()
Creates a string representation of a font description. |
Methods inherited from class org.gnu.glib.Boxed |
equals, getHandle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FontDescription(int handle)
public FontDescription()
public FontDescription(java.lang.String str)
str
- The string representation for the font description.Method Detail |
public void setFamily(java.lang.String family)
public java.lang.String getFamily()
public void setStyle(Style style)
public Style getStyle()
public void setVariant(Variant var)
public Variant getVariant()
public void setWeight(Weight weight)
public Weight getWeight()
public void setStretch(Stretch stretch)
public Stretch getStretch()
public void setSize(int size)
public int getSize()
public FontMask getSetFields()
public void replace(FontDescription descToMerge, boolean replaceExisting)
public java.lang.String toString()
toString
in class java.lang.Object
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |