Akira TAGOH <[EMAIL PROTECTED]> writes:

>>>>>> On Wed, 05 Jun 2002 19:02:42 +0200,
>>>>>> "MF" == Mike Fabian <[EMAIL PROTECTED]> wrote:

[...]

> MF> @@ -503,8 +576,10 @@
> MF>      bufsize = strlen(x11_font)+6;  /* Should be enought*/
> MF>      buffer = (char *)g_malloc(bufsize);
> MF>      g_snprintf(buffer, bufsize, x11_font, 100);
> MF> -    
> MF> -    gdk_font = gdk_font_load(buffer);
> MF> +
> MF> +    gdk_font = gdk_fontset_load (buffer);
> MF> +    if (!gdk_font) gdk_font = gdk_font_load(buffer);
> MF> +  
> MF>      if (gdk_font!=NULL) {
> font-> fontname_x11 = x11_font;
> MF>      }
> MF> @@ -521,7 +596,9 @@
> MF>        buffer = (char *)g_malloc(bufsize);
> MF>        g_snprintf(buffer, bufsize, x11_font, 100);
>        
> MF> -      gdk_font = gdk_font_load(buffer);
> MF> +      gdk_font = gdk_fontset_load(buffer);      
> MF> +      if (!gdk_font) gdk_font = gdk_font_load(buffer);
> MF> +
> MF>        g_free(buffer);
> MF>        if (gdk_font!=NULL) {
> MF>   message_warning(_("Warning no X Font for %s found, \nusing %s instead.\n"), 
>font->public.name, x11_font);
>
> those codes shouldn't be needed because those
> gdk_font_load() is just used for checking existence of
> fonts. it's not related for displaying and printing.
> Did you see any problem? original codes works for me though.

I think you are right. 

I had a problem with dia-0.88.1 without that, but when I tried
to reproduce it now with dia-0.90 I couldn't. Seems to work
fine with the original code. 

-- 
Mike Fabian   <[EMAIL PROTECTED]>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
_______________________________________________
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list

Reply via email to