[cairo] Cairo embolden font patch
otaylor at redhat.com
Tue Aug 23 14:21:55 PDT 2005
On Tue, 2005-08-23 at 11:00 +0800, sunmoon1997 wrote:
> It doesn't work until change line 1568 to
> load_flags = _get_pattern_load_flags (resolved);.
> In _get_pattern_load_flags:
> + if (FcPatternGetBool (pattern,
> + FC_EMBOLDEN, 0, &embolden) != FcResultMatch)
> FC always sets embolden to false, it seems this only work with
> a resolved pattern. Keith may wants to explain why it's not work.
Ah, yes, that's an 'obvious' fix.
The idea is that pattern is just something like "sans-serif italic 12"
and then it is passed through fonts.conf to get customize that in all
the system-specific ways - finding the right font file, setting
FC_EMBOLDEN if necessary, and so forth.
Thanks for catching it.
2005-08-23 Owen Taylor <otaylor at redhat.com>
* src/cairo-ft-font.c: Call _get_pattern_load_flags()
on the resolved pattern, not the input pattern.
(Further fix from sunmoon1997)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050823/3d326b2a/attachment-0001.pgp
More information about the cairo