+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.
+
Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
* docs/tutorial/gtk-tut.sgml: DND updates
+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.
+
Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
* docs/tutorial/gtk-tut.sgml: DND updates
+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.
+
Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
* docs/tutorial/gtk-tut.sgml: DND updates
+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.
+
Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
* docs/tutorial/gtk-tut.sgml: DND updates
+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.
+
Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
* docs/tutorial/gtk-tut.sgml: DND updates
+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.
+
Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
* docs/tutorial/gtk-tut.sgml: DND updates
+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.
+
Wed Nov 29 13:39:19 GMT 2000 Tony Gale <gale@gtk.org>
* docs/tutorial/gtk-tut.sgml: DND updates
private = g_new0 (GdkFontPrivateFB, 1);
font = (GdkFont *)private;
+ font->type = GDK_FONT_FONT;
+ private->size = font_desc->size;
private->base.ref_count = 1;
-
+
return font;
}
return width;
#else
- return 0;
+ GdkFontPrivateFB *private;
+
+ private = (GdkFontPrivateFB*) font;
+
+ return text_length * private->size / (PANGO_SCALE/2);
#endif
}
typedef struct {
GdkFontPrivate base;
-
- FT_Face face;
- double size;
+ int size;
} GdkFontPrivateFB;
void gdk_fb_font_init(void);