Re: Can we get fonts as sharp as Windows?

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

 



"Charles A. Landemaine" <landemaine@xxxxxxxxx> さんは書きました:

> Thanks Mike, I do have Freetype 2.2.1 (on PC-BSD). And I also have
> this in my .fonts.conf file:

[...]

> <!-- Enable sub-pixel rendering-->
>
> <match target="font" >
> 	<test name="rgba" qual="all" >
> 		<const>unknown</const>
> 	</test>
> 	<edit mode="assign" name="rgba" >
> 		<const>rgb</const>
> 	</edit>
> </match>

That looks OK. It switches on coloured rendering if your Xserver
cannot find out whether you have an LCD monitor or not.

If your Xserver can detect that you have an LCD monitor, "rgba" will
not be "unknown", it will already be "rgb" when the above rule is
read. When you have an LCD monitor connected via a digital cable
to your computer, the Xserver usually can detect that it is a LCD
monitor. If you use an analog cable, it cannot.

To switch on subpixel hinting unconditionally you could just as well
use the simpler rule:

<match target="font" >
	<edit mode="assign" name="rgba" >
		<const>rgb</const>
	</edit>
</match>

Using that, do you still get only grayscale anti-aliasing and no
colours? Is the value of rgba OK in the FC_DEBUG output?
It should be 1 if you set it to rgb, for example:

mfabian@magellan:~$ FC_DEBUG=4 xfd -fa sans 2>&1 | grep rgba
                    Edit rgba Assign rgb;
                    rgba: 1(i)(s)
                    rgba: 1(i)(s)
                    rgba: 1(i)(s)
                    rgba: 1(i)(s)
                    Edit rgba Assign rgb;
                    rgba: 1(i)(w)
                    rgba: 1(i)(w)
                    rgba: 1(i)(w)
                    rgba: 1(i)(w)
                    rgba: 1(i)(w)
                    rgba: 1(i)(w)
mfabian@magellan:~$

-- 
Mike FABIAN   <mfabian@xxxxxxx>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
I � Unicode
_______________________________________________
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