Re: Serious bug in gdk_draw_text() ?



On 5 Sep 2001, Owen Taylor wrote:
> 
> Vlad Harchev <hvv hippo ru> writes:
> 
> > On 4 Sep 2001, Owen Taylor wrote:
> > 
> >  Hi,
> > 
> > > 
> > >  -adobe-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso8859-1
> > > 
> > > The original pattern is completely nonsensical - it says,
> > > I want -adobe-helvetica- in some random character set encoding.
> > > XFree86-4.1 has been made to prefer iso8859-1 in such cases,
> > > but XFree86-3.3.6
> > 
> >  No, if app called gtk_set_locale (i.e. XSetLocale indirectly) XLib will pick
> > the font with encoding matching your locale's encoding then. Otherwise of
> > course XLib will assume "C" locale and will prefer font with iso8859-1
> > encoding. So declaring *-* as registry-encoding is a common practice for
> > XDefaults files and any other files that allow to select XLFDs of something
> > (and this allows not to write XDefaults for all locales one migh use - just a
> > single file does the job for all locales).
> 
> Only if you loaded the font with gdk_load_fontset(). If you load a 
> font with gdk_load_font() then the XLib internationalization machinery
> is not involved at all.

 Strange - it always worked as it should for me with gdk_load_font..
 Though the XLib code doesn't contain anything to aid this..
 May be because russian fonts were at the end of font list on all boxes I
worked at..

 Best regards,
  -Vlad





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