summaryrefslogtreecommitdiff
path: root/gdk/directfb
diff options
context:
space:
mode:
Diffstat (limited to 'gdk/directfb')
-rw-r--r--gdk/directfb/gdkfont-directfb.c72
1 files changed, 0 insertions, 72 deletions
diff --git a/gdk/directfb/gdkfont-directfb.c b/gdk/directfb/gdkfont-directfb.c
index a778a52c72..93ca82ab84 100644
--- a/gdk/directfb/gdkfont-directfb.c
+++ b/gdk/directfb/gdkfont-directfb.c
@@ -188,78 +188,6 @@ gdk_font_equal (const GdkFont *fonta,
return FALSE;
}
-gint
-gdk_text_width (GdkFont *font,
- const gchar *text,
- gint text_length)
-{
- GdkFontDirectFB *private;
-
- private = (GdkFontDirectFB*) font;
-
- return (text_length * private->size) / 2;
-}
-
-gint
-gdk_text_width_wc (GdkFont *font,
- const GdkWChar *text,
- gint text_length)
-{
- return 0;
-}
-
-void
-gdk_text_extents (GdkFont *font,
- const gchar *text,
- gint text_length,
- gint *lbearing,
- gint *rbearing,
- gint *width,
- gint *ascent,
- gint *descent)
-{
- if(ascent)
- *ascent = font->ascent;
- if(descent)
- *descent = font->descent;
- if(width)
- *width = gdk_text_width(font, text, text_length);
- if(lbearing)
- *lbearing = 0;
- if(rbearing)
- *rbearing = 0;
-}
-
-void
-gdk_text_extents_wc (GdkFont *font,
- const GdkWChar *text,
- gint text_length,
- gint *lbearing,
- gint *rbearing,
- gint *width,
- gint *ascent,
- gint *descent)
-{
- char *realstr;
- int i;
-
- realstr = alloca (text_length + 1);
-
- for(i = 0; i < text_length; i++)
- realstr[i] = text[i];
-
- realstr[i] = '\0';
-
- return gdk_text_extents (font,
- realstr,
- text_length,
- lbearing,
- rbearing,
- width,
- ascent,
- descent);
-}
-
GdkFont *
gdk_font_lookup (GdkNativeWindow xid)
{