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

Re: supporting XIM



Pablo Saratxaga <pablo@xxxxxxxxxxxxxxxx> さんは書きました:

> Also, Xft allows to define "virtual fonts" created from a list of other
> fonts; "Sans", "Serif" and "Monospace" come in standard.
>
> If you need such feature to use it with Xft programs that don't use
> pango, then you can create a ~/.fonts file (I think, not sure right
> now of the filename)

~/.fonts.conf

> and define some pseudo-fonts you want.

How does that work? I didn't know that it is possible to define
"virtual fonts" from a list of other fonts using fontconfig/Xft2.

I know that it is possible to use several fonts at once with Xft2 when
using GTK2 and Pango or Qt3. I.e. it is certainly possible to use
several fonts at once with Xft2.

But I don't yet know a *simple* way to achieve that by using only Xft2.
When using something like

	xft_font = XftFontOpenPattern(dpy, pattern);

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?

How does that work? 

-- 
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/