[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fontconfig, alias/pseudo-fonts, Xft
Jungshik Shin <jshin@xxxxxxxxxxx> さんは書きました:
> On Wed, 9 Apr 2003, Mike FABIAN wrote:
>
>> Jungshik Shin <jshin@xxxxxxxxxxx> さんは書きました:
>>
>> >>I always got exactly one font. Are you saying that it is possible to use
>> >>more than one font with a single call to XftFontOpenPattern()
>> >>by doing some setup in ~/.fonts.conf?
>
>> > I think Pablo mistook what fontconfig does for what Xft does unless
>> > I'm missing something Pablo knows. I also plead guilty of making
>> > a similar mistake when I wrote abuot working-around a hard-coded
>> > font name in a Window manager and a theme (e.g. Courier)
>>
>> Yes, that was the reason why Pablo's mail did arouse my interest. I
>> sounded like there is some way to make simple-minded applications
>> (which don't use sophisticated libraries like Pango) more or less work
>> with little changes in the code.
>>
>> Many window managers are like that. The best solution I currently
>> know is to use the generic aliases "sans-serif", "serif", and
>> "monspaced" instead of real font names like "Courier", etc...
>
> Would specifying "Courier,Kochi Gothic,Gulim,....." work?
> Well, I should test it.
It doesn't work like that for me (I'm currently using the
fontconfig/Xft which comes with XFree86 4.3.0, but I as far as I know
this hasn't changed in more recent versions of fontconfig).
>> In your above example from fonts.conf, "Luxi Mono" will be used in
>> case of German and "Kochi Gothic" will be used in case of Japanese.
>> But there is no easy way to display both German Umlauts *and* Japanese
>> at the same time without using a single font which contains both
>> Japanese and German Umlauts and inserting that on top of the <prefer>
>> list.
>
> How about this? A friend of mine sent me the following.
> He uses this because he doesn't want rather ugly glyphs for
> Latin letters in 'Gulim' (Korean font). With this set up,
> he gets Latin letters rendered in Courier and Korean
> characters in Gulim.
>
> -----
> <match target="pattern">
> <test name="family"><string>Gulim</string></test>
> <edit name="family" mode="prepend" binding="same">
> <string>Courier</string>
> </edit>
> </match>
> ------
>
> It seems like this is only supported in a relatively new version of
> fontconfig because my fontconfig (obtained from XF86 CVS in early
> March?) doesn't seem to support it. His fontconfig was obtained afresh
> (as of his email, which was about 10 days ago) from fontconfig.org CVS.
My fontconfig doesn't seem to support it either, I'll try to upgrade.
> It looks like the above can be extended to make simple-minded applications
> use multiple fonts, doesn't it?
>
> ---------------
> <match target="pattern">
> <test name="family"><string>Courier</string></test>
> <edit name="family" mode="append" binding="same">
> <string>Font1, Font2, Font3,....</string>
> </edit>
> </match>
> -------
>
> Perhaps, this has the same effect (but global instead of
> local to applications) as specifying 'Courier, Font1, Font2,
> Font3,....' for simple-minded window manager.
Maybe, I'll try to upgrade my fontconfig and test.
Thank you for the tips.
--
Mike Fabian <mfabian@xxxxxxx> http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
--
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/