From 740c5b2a20d5110435d0874f8cc6a4c9dfd14777 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 15 Oct 2003 03:59:35 +0000 Subject: consistant glib type usage --- render/font.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'render/font.c') diff --git a/render/font.c b/render/font.c index 155b373f..ce74cad1 100644 --- a/render/font.c +++ b/render/font.c @@ -63,7 +63,7 @@ static void measure_font(RrFont *f) f->elipses_length = (signed) info.xOff; } -static RrFont *openfont(const RrInstance *inst, char *fontstring) +static RrFont *openfont(const RrInstance *inst, gchar *fontstring) { RrFont *out; FcPattern *pat, *match; @@ -108,7 +108,7 @@ static RrFont *openfont(const RrInstance *inst, char *fontstring) return out; } -RrFont *RrFontOpen(const RrInstance *inst, char *fontstring) +RrFont *RrFontOpen(const RrInstance *inst, gchar *fontstring) { RrFont *out; @@ -149,20 +149,20 @@ static void font_measure_full(const RrFont *f, const gchar *str, *y = info.height + (f->shadow ? ABS(f->offset) : 0); } -int RrFontMeasureString(const RrFont *f, const gchar *str) +gint RrFontMeasureString(const RrFont *f, const gchar *str) { gint x, y; font_measure_full (f, str, &x, &y); return x + 4; } -int RrFontHeight(const RrFont *f) +gint RrFontHeight(const RrFont *f) { return f->xftfont->ascent + f->xftfont->descent + (f->shadow ? f->offset : 0); } -int RrFontMaxCharWidth(const RrFont *f) +gint RrFontMaxCharWidth(const RrFont *f) { return (signed) f->xftfont->max_advance_width; } -- cgit v1.2.3