org.gnu.pango

Class FontFace

public class FontFace extends GObject

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.gnome.pango.FontFace. As this package was never fully implemented in java-gnome 2.x, however, any new code written will have a considerably different public API.

The PangoFontFace structure is used to represent a group of fonts with the same family, slant, weight, width, but varying sizes.
Method Summary
FontDescriptiondescribe()
Returns the family, style, variant, weight and stretch of a PangoFontFace.
StringtoString()
Gets a name representing the style of this face among the different faces in the PangoFontFamily for the face.

Method Detail

describe

public FontDescription describe()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Returns the family, style, variant, weight and stretch of a PangoFontFace. The size field of the resulting font description will be unset.

toString

public String toString()

Deprecated: Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Gets a name representing the style of this face among the different faces in the PangoFontFamily for the face. This name is unique among all faces in the family and is suitable for displaying to users.