## cong-font

cong-font —

## Synopsis

    CongFont*   cong_font_load                  (const gchar *font_name);
    void        cong_font_delete                (CongFont *font);
    gint        cong_font_get_height            (CongFont *font,
                                                 const gchar *text);
    PangoFontDescription* cong_font_get_pango_description
                                                (CongFont *font);
    void        cong_font_draw_string_slow      (GdkDrawable *drawable,
                                                 CongFont *font,
                                                 GdkGC *gc,
                                                 const gchar *text,
                                                 gint x,
                                                 gint y,
                                                 CongFontYPos y_pos);
    gint        cong_font_string_width_slow     (CongFont *font,
                                                 const gchar *text);

## Description

## Details

### cong_font_load ()

    CongFont*   cong_font_load                  (const gchar *font_name);

Loads a font named `font_name`

`font_name` : | The name of the font to load
Returns : | The CongFont

### cong_font_delete ()

    void        cong_font_delete                (CongFont *font);

Unimplemented

`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`.

`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);

`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

`drawable` : | a GdkDrawable
`font` : | a CongFont
`gc` : | a GdkGC
`text` : | a string
`x` : | a gint
`y` : | a gint
`y_pos` : |

### cong_font_string_width_slow ()

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

`font` : | a CongFont
`text` : | the string to be rendered
Returns : | The width, in pixels, of `text` rendered in `font`