[cairo] Re: FcPattern vs. font options
sunmoon1997
sunmoon1997 at gmail.com
Fri Oct 21 19:29:03 PDT 2005
hi,
I attached two updated testcases and the patch(removed all unralated
stuff and fixed a stupid bug).
cairo-1.0.x fails testcase cairo-text-antialias-font-options and
passes cairo-text-antialias-fcpattern. cairo-1.1.x(without my patch)
get opposite results. cairo-1.1.x(with my patch) passes both of them.
sunmoon1997 wrote:
> hi,
> Another problem about text rendering.
> 1. For cairo-1.0.x almost options that effecting font glyphs are token
> from the FcPattern and font options (cairo_font_options_t) is ignored
> sometimes for example, if I disabled antialias in gnome control centre,
> that won't effect text rendering at all, all texts on my screen still got
> antialiased(see testcase cairo-text-antialias.c).
> 2. Then let's come to cairo-1.1.x, load flags that will passe to
> FT_Load_Glyph are almost token from FcPattern but when rendering
> glyphs cairo only use the rules stored in font options that usually no
> keep identical with load flags. That will make problems e.g cairo'll
> antialias glyphs even I disabled antialiasing in fonts.conf.
>
> Here is the initial patch(includeing some other fixes) to fix this
> problem.
> Any comments?
>
> Jinghua Luo
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-text-antialias-fcpattern.c
Type: text/x-csrc
Size: 1841 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20051022/6be71ff1/cairo-text-antialias-fcpattern.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-text-antialias-font-options.c
Type: text/x-csrc
Size: 1262 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20051022/6be71ff1/cairo-text-antialias-font-options.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-cvs-font-fix.diff
Type: text/x-patch
Size: 6040 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20051022/6be71ff1/cairo-cvs-font-fix.bin
More information about the cairo
mailing list