[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: dia 0.90: printing Japanese using --enable-freetype ?



Akira TAGOH <tagoh@gnome.gr.jp> writes:

>>>>>> On Wed, 05 Jun 2002 19:02:42 +0200,
>>>>>> "MF" == Mike Fabian <mfabian@suse.de> 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   <mfabian@suse.de>   http://www.suse.de/~mfabian
$B?gL2ITB-$O$$$$;E;v$NE($@!#(B


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK