pango-Fonts {RGtk2}R Documentation

Fonts

Description

Structures representing abstract fonts

Methods and Functions

pangoFontDescriptionNew()
pangoFontDescriptionCopy(object)
pangoFontDescriptionCopyStatic(object)
pangoFontDescriptionHash(object)
pangoFontDescriptionEqual(object, desc2)
pangoFontDescriptionSetFamily(object, family)
pangoFontDescriptionSetFamilyStatic(object, family)
pangoFontDescriptionGetFamily(object)
pangoFontDescriptionSetStyle(object, style)
pangoFontDescriptionGetStyle(object)
pangoFontDescriptionSetVariant(object, variant)
pangoFontDescriptionGetVariant(object)
pangoFontDescriptionSetWeight(object, weight)
pangoFontDescriptionGetWeight(object)
pangoFontDescriptionSetStretch(object, stretch)
pangoFontDescriptionGetStretch(object)
pangoFontDescriptionSetSize(object, size)
pangoFontDescriptionGetSize(object)
pangoFontDescriptionSetAbsoluteSize(object, size)
pangoFontDescriptionGetSizeIsAbsolute(object)
pangoFontDescriptionGetSetFields(object)
pangoFontDescriptionUnsetFields(object, to.unset)
pangoFontDescriptionMerge(object, desc.to.merge, replace.existing)
pangoFontDescriptionBetterMatch(object, old.match = NULL, new.match)
pangoFontDescriptionFromString(str)
pangoFontDescriptionToString(object)
pangoFontDescriptionToFilename(object)
pangoFontMetricsGetAscent(object)
pangoFontMetricsGetDescent(object)
pangoFontMetricsGetApproximateCharWidth(object)
pangoFontMetricsGetApproximateDigitWidth(object)
pangoFontMetricsGetUnderlineThickness(object)
pangoFontMetricsGetUnderlinePosition(object)
pangoFontMetricsGetStrikethroughThickness(object)
pangoFontMetricsGetStrikethroughPosition(object)
pangoFontFindShaper(object, language, ch)
pangoFontDescribe(object)
pangoFontGetCoverage(object, language)
pangoFontGetGlyphExtents(object, glyph)
pangoFontGetMetrics(object, language = NULL)
pangoFontGetFontMap(object)
pangoFontFamilyGetName(object)
pangoFontFamilyIsMonospace(object)
pangoFontFamilyListFaces(object)
pangoFontFaceGetFaceName(object)
pangoFontFaceListSizes(object)
pangoFontFaceDescribe(object)
pangoFontMapLoadFont(object, context, desc)
pangoFontMapLoadFontset(object, context, desc, language)
pangoFontMapListFamilies(object)
pangoFontsetGetFont(object, wc)
pangoFontsetGetMetrics(object)
pangoFontsetForeach(object, func, data)

Hierarchy

  GObject
   +----PangoFont
         +----PangoFcFont
  GObject
   +----PangoFontFamily
  GObject
   +----PangoFontFace
  GObject
   +----PangoFontMap
         +----PangoFcFontMap
  GObject
   +----PangoFontset
         +----PangoFontsetSimple
  GObject
   +----PangoFontset
         +----PangoFontsetSimple

Interface Derivations

PangoFontMap is required by PangoCairoFontMap.

Detailed Description

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.

Structures

PangoFontDescription
The PangoFontDescription structure represents the description of an ideal font. These structures are used both to list what fonts are available on the system and also for specifying the characteristics of a font to load.

PangoFontMetrics
A PangoFontMetrics structure holds the overall metric information for a font (possibly restricted to a script). The fields of this structure are private to implementations of a font backend. See the documentation of the corresponding getters for documentation of their meaning.

PangoFont
The PangoFont structure is used to represent a font in a rendering-system-independent matter. To create an implementation of a PangoFont, the rendering-system specific code should malloc a larger structure that contains a nested PangoFont, fill in the klass member of the nested PangoFont with a pointer to a appropriate PangoFontClass, then call pango\Font\Init() on the structure.

The PangoFont structure contains one member which the implementation fills in:

PangoFontFamily
The PangoFontFamily structure is used to represent a family of related font faces. The faces in a family share a common design, but differ in slant, weight, width and other aspects.

PangoFontFace
The PangoFontFace structure is used to represent a group of fonts with the same family, slant, weight, width, but varying sizes.

PangoFontMap
The PangoFontMap represents the set of fonts available for a particular rendering system. This is a virtual object with implementations being specific to particular rendering systems. To create an implementation of a PangoFontMap, the rendering-system specific code should malloc a larger structure that contains a nested PangoFontMap, fill in the klass member of the nested PangoFontMap with a pointer to a appropriate PangoFontMapClass, then call pango\Font\Map\Init() on the structure.

The PangoFont structure contains one member which the implementation fills in:

PangoFontset
A PangoFontset represents a set of PangoFont to use when rendering text. It is the result of resolving a PangoFontDescription against a particular PangoContext. It has operations for finding the component font for a particular Unicode character, and for finding a composite set of metrics for the entire fontset.

PangoFontsetSimple
PangoFontSetSimple is a implementation of the abstract PangoFontSet base class in terms of a list of fonts, which the creator provides when constructing the PangoFontSetSimple.

Enums and Flags

PangoStyle
An enumeration specifying the various slant styles possible for a font.

normal
the font is upright.
oblique
the font is slanted, but in a roman style.
italic
the font is slanted in an italic style.

PangoWeight
An enumeration specifying the weight (boldness) of a font. This is a numerical value ranging from 100 to 900, but there are some predefined values:

ultralight
the ultralight weight (= 200)
light
the light weight (=300)
normal
the default weight (= 400)
semibold
a weight intermediate between normal and bold (=600)
bold
the bold weight (= 700)
ultrabold
the ultrabold weight (= 800)
heavy
the heavy weight (= 900)

PangoVariant
An enumeration specifying capitalization variant of the font.

normal
A normal font.
small-caps
A font with the lower case characters replaced by smaller variants of the capital characters.

PangoStretch
An enumeration specifying the width of the font relative to other designs within a family.

ultra-condensed
undocumented
extra-condensed
undocumented
condensed
undocumented
semi-condensed
undocumented
normal
the normal width
semi-expanded
undocumented
expanded
undocumented
extra-expanded
undocumented
ultra-expanded
undocumented

PangoFontMask
The bits in a PangoFontMask correspond to fields in a PangoFontDescription that have been set.

family
the font family is specified.
style
the font style is specified.
variant
the font variant is specified.
weight
the font weight is specified.
stretch
the font stretch is specified.
size
the font size is specified.

User Functions

PangoFontsetForeachFunc(fontset, font, data)
A callback function used by pangoFontsetForeach when enumerating the fonts in a fontset.

Since 1.4

fontset
[PangoFontset] a PangoFontset
font
[PangoFont] a font from fontset
data
[R object] callback data

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://developer.gnome.org/doc/API/2.0/pango/pango-Fonts.html


[Package RGtk2 version 2.8.5 Index]