|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.pango.Context
The PangoContext structure stores global information used to control the itemization process. It contains the following fields:
Constructor Summary | |
Context(int handle)
Create a new Context passing a handle that was created in the native layer. |
Method Summary | |
Direction |
getBaseDir()
Retrieves the base direction for the context. |
FontDescription |
getFontDescription()
Retrieve the default font description for the context. |
Language |
getLanguage()
Retrieves the global language tag for the context. |
FontMetrics |
getMetrics(FontDescription desc,
Language language)
Get overall metric information for a font particular font description. |
FontDescription |
loadFont(FontDescription desc)
Loads the font in one of the fontmaps in the context that is the closest match for desc. |
void |
setBaseDir(Direction dir)
Sets the base direction for the context. |
void |
setFontDescription(FontDescription desc)
Sets the font description |
void |
setLanguage(Language lang)
Sets the language |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Context(int handle)
Method Detail |
public FontDescription getFontDescription()
public void setFontDescription(FontDescription desc)
public Language getLanguage()
public void setLanguage(Language lang)
public Direction getBaseDir()
public void setBaseDir(Direction dir)
public FontDescription loadFont(FontDescription desc)
desc
- A FontDescription describing the font to load
null
if no font matched.public FontMetrics getMetrics(FontDescription desc, Language language)
The PangoFontDescription is interpreted in the same way as by pango_itemize(), and the family name may be a comma separated list of figures. If characters from multiple of these families would be used to render the string, then the returned fonts would be a composite of the metrics for the fonts loaded for the individual families.
|
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 |