[Nautilus-list] PangoFT2 font problem
- From: Alex Larsson <alexl redhat com>
- To: <nautilus-list lists eazel com>, Darin Adler <darin bentspoon com>
- Subject: [Nautilus-list] PangoFT2 font problem
- Date: Wed, 9 Jan 2002 22:20:08 -0500 (EST)
I looked at the PangoFT2 ugly font problem, and the reason it looks
strange is that the default font for a new PangoContext is "serif".
The following patch makes it look a lot better. (It uses the same font as
the widget style.)
Can I check it in?
/ Alex
Index: eel/eel-gtk-extensions.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-gtk-extensions.c,v
retrieving revision 1.31
diff -u -p -r1.31 eel-gtk-extensions.c
--- eel/eel-gtk-extensions.c 2002/01/08 22:37:06 1.31
+++ eel/eel-gtk-extensions.c 2002/01/10 03:12:02
@@ -1656,6 +1656,7 @@ create_pango_ft2_context (PangoContext *
pango_context_set_language (context, pango_context_get_language (base_context));
pango_context_set_base_dir (context, pango_context_get_base_dir (base_context));
+ pango_context_set_font_description (context, pango_context_get_font_description (base_context));
return context;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]