Top |
GdkFont * | gdk_font_load () |
GdkFont * | gdk_font_load_for_display () |
GdkFont * | gdk_fontset_load () |
GdkFont * | gdk_fontset_load_for_display () |
GdkFont * | gdk_font_from_description () |
GdkFont * | gdk_font_from_description_for_display () |
GdkDisplay * | gdk_font_get_display () |
GdkFont * | gdk_font_ref () |
void | gdk_font_unref () |
gint | gdk_font_id () |
gboolean | gdk_font_equal () |
void | gdk_string_extents () |
void | gdk_text_extents () |
void | gdk_text_extents_wc () |
gint | gdk_string_width () |
gint | gdk_text_width () |
gint | gdk_text_width_wc () |
gint | gdk_char_width () |
gint | gdk_char_width_wc () |
gint | gdk_string_measure () |
gint | gdk_text_measure () |
gint | gdk_char_measure () |
gint | gdk_string_height () |
gint | gdk_text_height () |
gint | gdk_char_height () |
gchar * | gdk_wcstombs () |
gint | gdk_mbstowcs () |
GdkFont *
gdk_font_load (const gchar *font_name
);
gdk_font_load
is deprecated and should not be used in newly-written code.
Loads a font.
The font may be newly loaded or looked up the font in a cache. You should make no assumptions about the initial reference count.
GdkFont * gdk_font_load_for_display (GdkDisplay *display
,const gchar *font_name
);
gdk_font_load_for_display
is deprecated and should not be used in newly-written code.
Loads a font for use on display
.
The font may be newly loaded or looked up the font in a cache. You should make no assumptions about the initial reference count.
display |
||
font_name |
a XLFD describing the font to load. |
|
returns |
a GdkFont, or |
Since: 2.2
GdkFont *
gdk_fontset_load (const gchar *fontset_name
);
gdk_fontset_load
is deprecated and should not be used in newly-written code.
Loads a fontset.
The fontset may be newly loaded or looked up in a cache. You should make no assumptions about the initial reference count.
GdkFont * gdk_fontset_load_for_display (GdkDisplay *display
,const gchar *fontset_name
);
gdk_fontset_load_for_display
is deprecated and should not be used in newly-written code.
Loads a fontset for use on display
.
The fontset may be newly loaded or looked up in a cache. You should make no assumptions about the initial reference count.
display |
||
fontset_name |
a comma-separated list of XLFDs describing the component fonts of the fontset to load. |
|
returns |
a GdkFont, or |
Since: 2.2
GdkFont *
gdk_font_from_description (PangoFontDescription *font_desc
);
gdk_font_from_description
is deprecated and should not be used in newly-written code.
Load a GdkFont based on a Pango font description. This font will only be an approximation of the Pango font, and internationalization will not be handled correctly. This function should only be used for legacy code that cannot be easily converted to use Pango. Using Pango directly will produce better results.
GdkFont * gdk_font_from_description_for_display (GdkDisplay *display
,PangoFontDescription *font_desc
);
gdk_font_from_description_for_display
is deprecated and should not be used in newly-written code.
Loads a GdkFont based on a Pango font description for use on display
.
This font will only be an approximation of the Pango font, and
internationalization will not be handled correctly. This function
should only be used for legacy code that cannot be easily converted
to use Pango. Using Pango directly will produce better results.
Since: 2.2
GdkDisplay *
gdk_font_get_display (GdkFont *font
);
gdk_font_get_display
is deprecated and should not be used in newly-written code.
Returns the GdkDisplay for font
.
Since: 2.2
GdkFont *
gdk_font_ref (GdkFont *font
);
gdk_font_ref
is deprecated and should not be used in newly-written code.
Increases the reference count of a font by one.
void
gdk_font_unref (GdkFont *font
);
gdk_font_unref
is deprecated and should not be used in newly-written code.
Decreases the reference count of a font by one. If the result is zero, destroys the font.
gint
gdk_font_id (const GdkFont *font
);
gdk_font_id
is deprecated and should not be used in newly-written code.
Returns the X Font ID for the given font.
gboolean gdk_font_equal (const GdkFont *fonta
,const GdkFont *fontb
);
gdk_font_equal
is deprecated and should not be used in newly-written code.
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.
void gdk_string_extents (GdkFont *font
,const gchar *string
,gint *lbearing
,gint *rbearing
,gint *width
,gint *ascent
,gint *descent
);
gdk_string_extents
is deprecated and should not be used in newly-written code.
Gets the metrics of a nul-terminated string.
font |
a GdkFont. |
|
string |
the nul-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. |
void gdk_text_extents (GdkFont *font
,const gchar *text
,gint text_length
,gint *lbearing
,gint *rbearing
,gint *width
,gint *ascent
,gint *descent
);
gdk_text_extents
is deprecated and should not be used in newly-written code.
Gets 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. |
void gdk_text_extents_wc (GdkFont *font
,const GdkWChar *text
,gint text_length
,gint *lbearing
,gint *rbearing
,gint *width
,gint *ascent
,gint *descent
);
gdk_text_extents_wc
is deprecated and should not be used in newly-written code.
Gets 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. |
gint gdk_string_width (GdkFont *font
,const gchar *string
);
gdk_string_width
is deprecated and should not be used in newly-written code.
Determines the width of a nul-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)
gint gdk_text_width (GdkFont *font
,const gchar *text
,gint text_length
);
gdk_text_width
is deprecated and should not be used in newly-written code.
Determines the width of a given string.
gint gdk_text_width_wc (GdkFont *font
,const GdkWChar *text
,gint text_length
);
gdk_text_width_wc
is deprecated and should not be used in newly-written code.
Determines the width of a given wide-character string.
font |
a GdkFont |
|
text |
the text to measure. |
|
text_length |
the length of the text in characters. |
gint gdk_char_width (GdkFont *font
,gchar character
);
gdk_char_width
has been deprecated since version 2.2 and should not be used in newly-written code.
Use gdk_text_extents()
instead.
Determines the width of a given character.
gint gdk_char_width_wc (GdkFont *font
,GdkWChar character
);
gdk_char_width_wc
is deprecated and should not be used in newly-written code.
Determines the width of a given wide character. (Encoded in the wide-character encoding of the current locale).
gint gdk_string_measure (GdkFont *font
,const gchar *string
);
gdk_string_measure
is deprecated and should not be used in newly-written code.
Determines the distance from the origin to the rightmost
portion of a nul-terminated string when drawn. This is not the
correct value for determining the origin of the next
portion when drawing text in multiple pieces.
See gdk_string_width()
.
gint gdk_text_measure (GdkFont *font
,const gchar *text
,gint text_length
);
gdk_text_measure
is deprecated and should not be used in newly-written code.
Determines the distance from the origin to the rightmost
portion of a string when drawn. This is not the
correct value for determining the origin of the next
portion when drawing text in multiple pieces.
See gdk_text_width()
.
gint gdk_char_measure (GdkFont *font
,gchar character
);
gdk_char_measure
is deprecated and should not be used in newly-written code.
Determines the distance from the origin to the rightmost portion of a character when drawn. This is not the correct value for determining the origin of the next portion when drawing text in multiple pieces.
gint gdk_string_height (GdkFont *font
,const gchar *string
);
gdk_string_height
is deprecated and should not be used in newly-written code.
Determines the total height of a given nul-terminated
string. This value is not generally useful, because you
cannot determine how this total height will be drawn in
relation to the baseline. See gdk_string_extents()
.
gint gdk_text_height (GdkFont *font
,const gchar *text
,gint text_length
);
gdk_text_height
is deprecated and should not be used in newly-written code.
Determines the total height of a given string.
This value is not generally useful, because you cannot
determine how this total height will be drawn in
relation to the baseline. See gdk_text_extents()
.
gint gdk_char_height (GdkFont *font
,gchar character
);
gdk_char_height
has been deprecated since version 2.2 and should not be used in newly-written code.
Use gdk_text_extents()
instead.
Determines the total height of a given character.
This value is not generally useful, because you cannot
determine how this total height will be drawn in
relation to the baseline. See gdk_text_extents()
.
gchar *
gdk_wcstombs (const GdkWChar *src
);
gdk_wcstombs
is deprecated and should not be used in newly-written code.
Converts a wide character string to a multi-byte string. (The function name comes from an acronym of 'Wide Character String TO Multi-Byte String').
gint gdk_mbstowcs (GdkWChar *dest
,const gchar *src
,gint dest_max
);
gdk_mbstowcs
is deprecated and should not be used in newly-written code.
Converts a multi-byte string to a wide character string. (The function name comes from an acronym of 'Multi-Byte String TO Wide Character String').