cong-font

cong-font

Functions

Description

Functions

cong_font_load ()

CongFont *
cong_font_load (const gchar *font_name);

Loads a font named font_name

Parameters

font_name

The name of the font to load

 

Returns

The CongFont


cong_font_delete ()

void
cong_font_delete (CongFont *font);

Unimplemented

Parameters

font

a CongFont

 

cong_font_get_height ()

gint
cong_font_get_height (CongFont *font,
                      const gchar *text);

Computes the height, in pixels, of text rendered in font .

Parameters

font

a CongFont

 

text

a string to render

 

Returns

height, in pixels, of text rendered in font


cong_font_get_pango_description ()

PangoFontDescription *
cong_font_get_pango_description (CongFont *font);

Parameters

font

a CongFont

 

Returns

the PangoFontDescription for font


cong_font_draw_string_slow ()

void
cong_font_draw_string_slow (GdkDrawable *drawable,
                            CongFont *font,
                            GdkGC *gc,
                            const gchar *text,
                            gint x,
                            gint y,
                            CongFontYPos y_pos);

TODO: Write me

Parameters

drawable

a GdkDrawable

 

font

a CongFont

 

gc

a GdkGC

 

text

a string

 

x

a gint

 

y

a gint

 

cong_font_string_width_slow ()

gint
cong_font_string_width_slow (CongFont *font,
                             const gchar *text);

Parameters

font

a CongFont

 

text

the string to be rendered

 

Returns

The width, in pixels, of text rendered in font

Types and Values