[cairo-bugs] [Bug 11838] hintstyle specified in fontconfig is ignored while rgba is respected sometimes

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 30 04:13:41 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=11838

Igor <grogi at o2.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #37489|0                           |1
        is obsolete|                            |

--- Comment #16 from Igor <grogi at o2.pl> 2011-01-30 04:13:36 PST ---
Created an attachment (id=42713)
 View: https://bugs.freedesktop.org/attachment.cgi?id=42713
 Review: https://bugs.freedesktop.org/review?bug=11838&attachment=42713

Revised version of respect-fontconfig patch against 1.10.2 version.

I am sending the updated patch, with comments from Behdad Esfahbod
incorporated.

There are two routines modified with this patch:

* _cairo_ft_options_merge - changes here are small and focus on having the same
algorithm for all font properties: if other structure define a property (it
does not equal CAIRO_*_DEFAULT), this value will be used. Sometimes there is
some additional processing for antialiasing required - in case the subpixel
antialiasing is forced on, but physical screen structure is unknown, the type
of antialiasing (Subpixel/Gray) has to be calculated based on values in options
structure.

* _get_pattern_ft_options - this routine loads FontConfig information into
cairo_ft_options_t structure. 

** The most significant change here covers the fact, that hinting information
wasn't processed if antialiasing was switched off. 

** Another change in behavior applies to antialiasing information - basically
there are 7 different combination of FontConfig properties ('antialias' and
'rgba') values that define different behavior, but they cannot be naturally
represented in cairo_ft_options_t structure (in theory it could be done, but
with extremely nasty approach). As changing the contract and defining
additional value for _cairo_subpixel_order type would be rather wrong idea, the
routine will assume user wanted to switch on antialiasing when the 'rgba'
property is defined.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list