org.gnu.pango

Class Font


public class Font
extends GObject

Pango supports a flexible architecture where a particular rendering architecture can supply an implementation of fonts. The PangoFont structure represents an abstract rendering-system-indepent font. Pango provides routines to list available fonts, and to load a font of a given description.

Constructor Summary

Font()
Create an uninitialized instance.

Method Summary

FontDescription
describe()
Returns a description of the font.
Coverage
getCoverage(Language lang)
Computes the coverage map for a given font and language tag.
FontMetrics
getMetrics(Language lang)
Gets overall metric information for a font.
static Type
getType()
Retrieve the runtime type used by the GLib library.

Methods inherited from class org.gnu.glib.GObject

addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getEventListenerClass, getEventType, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getPixbufProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setPixbufProperty, setProperty, setStringProperty, thawNotify

Constructor Details

Font

public Font()
Create an uninitialized instance. This has potential uses for derived classes.

Method Details

describe

public FontDescription describe()
Returns a description of the font.

getCoverage

public Coverage getCoverage(Language lang)
Computes the coverage map for a given font and language tag.

getMetrics

public FontMetrics getMetrics(Language lang)
Gets overall metric information for a font. Since the metrics may be substantially different for different scripts, a language tag can be provided to indicate that the metrics should be retrieved that correspond to the script(s) used by that language.

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.