Re: Another try at blocking fallback

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

 



Wendell P wrote:
On Thu, Dec 13, 2012, at 09:25 PM, Akira TAGOH wrote:
do you want to do that with/without
Pango right? as Khaled Hosny suggested, it can be done in Pango

I wanted to block fallback for just one user. It seems that is not
possible.

As I understand, the solution with Pango requires making a special build
of libpango. That would make it awkward to switch back and forth.

No, I think you could get away with subclassing (or using a patched version of) GtkTextView and GtkTextLayout in your app. (Their current API doesn't seem to allow setting arbitrary PangoAttributes.)

It seems the only configuration solution is to disable fallback for the
whole system. What is the cleanest way to do that? I tried renaming the
files in /etc/fonts/conf.avail, but that had no effect.

I think any fontconfig-based approach to control Pango's fallback can only be the second-best solution because Pango knows the context a lot better. fontconfig doesn't know whether a requested font for a certain lang is going to be used for a large chunk of text, or only a single character.

Raimund




--
Worringer Str 31 Duesseldorf 40211 DE  home: <rs@xxxxxxxx>
+49-179-2981632 icq 16845346           work: <rs@xxxxxxxxxxxxxxx>
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux