GDK Reference Manual
Loads a fontset. Currently this function will always return a new font, however, in the future, it may be changed to look up the font in a cache. You should make no assumptions about the initial reference count. fontset_name : a comma-separated list of XLFDs describing the component fonts of the fontset to load. Returns : a GdkFont, or NULL if the fontset could not be loaded.
Increase the reference count of a count by one. font : a GdkFont Returns : font
Decrease the reference count of a count by one. If the result is zero, destroys the font. font : a GdkFont
Returns the X Font ID for the given font. font : a GdkFont. Returns : the numeric X Font ID
Compares two fonts for equality. Single fonts compare equal if they have the same X font ID. This operation does not currently work correctly for fontsets. fonta : a GdkFont. fontb : another GdkFont. Returns : TRUE if the fonts are equal.
Returns the metrics of a NULL-terminated string. font : a GdkFont. string : the NULL-terminated string to measure. lbearing : the left bearing of the string. rbearing : the right bearing of the string. width : the width of the string. ascent : the ascent of the string. descent : the descent of the string.
Returns the metrics of a string. font : a GdkFont text : the text to measure text_length : the length of the text in bytes. (If the font is a 16-bit font, this is twice the length of the text in characters.) lbearing : the left bearing of the string. rbearing : the right bearing of the string. width : the width of the string. ascent : the ascent of the string. descent : the descent of the string.
Returns the metrics of a string of wide characters. font : a GdkFont text : the text to measure. text_length : the length of the text in character. lbearing : the left bearing of the string. rbearing : the right bearing of the string. width : the width of the string. ascent : the ascent of the string. descent : the descent of the string.
Determine the width of a NULL-terminated string. (The distance from the origin of the string to the point where the next string in a sequence of strings should be drawn) font : a GdkFont string : the NULL-terminated string to measure Returns : the width of the string in pixels.
|