summaryrefslogtreecommitdiff
path: root/gdk/linux-fb/gdkprivate-fb.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2000-11-29 13:49:37 +0000
committerAlexander Larsson <alexl@src.gnome.org>2000-11-29 13:49:37 +0000
commitb1b6c9fc7af328101fb7664e2c36d7116697ba92 (patch)
tree41e1fbc5bde4a57706240924d99317285fcaa246 /gdk/linux-fb/gdkprivate-fb.h
parent696d0bc1b0cf64bce68a78a227fe5d29abdbb3ea (diff)
downloadgdk-pixbuf-b1b6c9fc7af328101fb7664e2c36d7116697ba92.tar.gz
Set the size of the font from the description. (gdk_text_width): Gross
2000-11-29 Alexander Larsson <alexl@redhat.com> * gdk/linux-fb/gdkfont-fb.c (gdk_font_from_description): Set the size of the font from the description. (gdk_text_width): Gross hack that calculates the width of text by text_length * size/2. This is necessary because GtkLabel does some ugly gtk_string_width call to calculate an good size. (linux-fb/gdkprivate-fb.h): Removed unused field FT_Face.
Diffstat (limited to 'gdk/linux-fb/gdkprivate-fb.h')
-rw-r--r--gdk/linux-fb/gdkprivate-fb.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdk/linux-fb/gdkprivate-fb.h b/gdk/linux-fb/gdkprivate-fb.h
index a7761b1af..ddf82c716 100644
--- a/gdk/linux-fb/gdkprivate-fb.h
+++ b/gdk/linux-fb/gdkprivate-fb.h
@@ -147,9 +147,7 @@ typedef struct {
typedef struct {
GdkFontPrivate base;
-
- FT_Face face;
- double size;
+ int size;
} GdkFontPrivateFB;
void gdk_fb_font_init(void);