hello all! I changed the file dw_style.c as the following and the function font->font = gdk_fontset_load (fontname); is integrant for my chinese support .But the function arose dillo can not COPY & PLASTER . static void Dw_style_font_realize (DwStyleFont *font, gboolean try_all) { char fontname[256], *ItalicChar; @@ -250,15 +251,20 @@ font->bold ? "bold" : "medium", font->italic ? ItalicChar : "r", font->size); - font->font = gdk_font_load (fontname); + strcat (fontname, + "-adobe-helvetica-medium-r-normal--16-*-*-*-*-*-iso8859-1," + " -misc-simsun-medium-r-normal--16-*-*-*-*-*-gb18030.2000-0"); + font->font = gdk_fontset_load (fontname); if (font->font == NULL && font->italic) { - sprintf (fontname, "-*-%s-%s-%s-*-*-%d-*-75-75-*-*-iso8859-1", + sprintf (fontname, "-adobe-helvetica-medium-r-normal--16-*-*-*-*-*-iso8859-1," + "-misc-simsun-medium-r-normal--16-*-*-*-*-*-gb18030.2000-0", + //" -*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*", font->name, font->bold ? "bold" : "medium", (*ItalicChar == 'o') ? "i" : "o", font->size); - font->font = gdk_font_load (fontname); + font->font = gdk_fontset_load (fontname); } if (try_all) { @@ -266,21 +272,24 @@ /* Can't load the font - substitute the default instead. */ font->font = gdk_font_load - ("-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-iso8859-1"); + ("-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-iso8859-1," + "-misc-simsun-medium-r-normal--16-*-*-*-*-*-gb18030.2000-0"); } if (font->font == NULL) { /* Try another platform-font that should be available. (iPaq) */ font->font = gdk_font_load - ("-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1"); + ("-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso8859-1," + "-misc-simsun-medium-r-normal--16-*-*-*-*-*-gb18030.2000-0"); } if (font->font == NULL) { /* Can't load any suitable font! */ g_warning ("Can't load any ISO8859-1 font!?! :("); font->font = Page: 15 File: E:\project_back\dillo-0.7.2-chinese.patch 2003-6-20, 8:39:00 - gdk_font_load ("-adobe-helvetica-*-*-*--*-*-*-*-*-*-*-*"); + gdk_font_load ("-adobe-helvetica-*-*-*--*-*-*-*-*-*-*-*," + "-misc-simsun-medium-r-normal--16-*-*-*-*-*-gb18030.2000-0"); } } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sincerely Yours Xingqiang Wang Embedded Software Division. Neusoft Middleware Technologies Company Neusoft Park, Hun Nan Industrial Area, New & High-Tech Development Zone, Shenyang 110179, PRC TEL:+86-24-83665518 E-mail:wang_xq@neusoft.com Http://www.neusoft.com
Afaik, pango would allow multiple language support??? (I'm new in this)
On Thu, 03 Jul 2003 07:17:59 +1000 TheStar <thestar@tpg.com.au> wrote:
Afaik, pango would allow multiple language support??? (I'm new in this)
Please, no! Is it my imagination, or is everything slower with GTK2? Todd -- The dubya stands for whore.
On Wed, 2 Jul 2003, Todd Slater wrote: As for the gtk2, I believe its already in dillo, I think I enabled it at one point using --enable-gtk2 on ./configure (Correct me if I'm wrong)
Please, no! Is it my imagination, or is everything slower with GTK2?
No, not really, the performance should be roughly the same. (Actually gtk2 should be faster as it gets more efficient) A major factor is the engine you use. I ported the pixmap "AbsoluteE" theme to gtk2 and it was slower than a snail (gdk pixbuf). However, I run the mist (etria.org-blue) engines on my gtk1 and gtk2 themes and both are incredibly quick. One factor COULD be xft, (although I think its possible, although by no means a standard practice to enable xft on gtk1) which might slow things down a bit, but personally, I would stay away from a non-antialiased browser... Tim
At 04:34 AM 7/7/2003, Timothy Beyer wrote:
As for the gtk2, I believe its already in dillo, I think I enabled it at one point using --enable-gtk2 on ./configure (Correct me if I'm wrong)
Out of curiosity, I tried this on my Linux box at work (Red Hat 9). It still built with GTK+ 1.2 (Try "ldd /path/to/dillo" and see what version it's linked to.) I then tried removing the GTK+ 1.2 development package, at which point configure couldn't detect GTK at all. Kelson Vibber www.hyperborea.org
participants (5)
-
Kelson Vibber
-
ronnie
-
TheStar
-
Timothy Beyer
-
Todd Slater