[cairo] OpenType font variations and cairo

Behdad Esfahbod behdad.esfahbod at gmail.com
Thu Sep 21 18:47:46 UTC 2017


I'll try to take a look today as well.  Looping in Werner.

Let's aim to have this sorted out this week and commit.  I'll be travelling
again for multiple weeks and don't want to see what happened to color-fonts
patchset to happen here.

On Thu, Sep 21, 2017 at 4:22 AM, Matthias Clasen <matthias.clasen at gmail.com>
wrote:

>
>
> On Thu, Sep 21, 2017 at 5:42 AM, Adrian Johnson <ajohnson at redneon.com>
> wrote:
>
>> On 21/09/17 12:03, Matthias Clasen wrote:
>> > On Wed, Sep 20, 2017 at 6:15 PM, Behdad Esfahbod
>> > <behdad.esfahbod at gmail.com <mailto:behdad.esfahbod at gmail.com>> wrote:
>> >
>> >     The test was really broken...
>> >
>> >     Ok, I've pushed some things there that should help Matthias move
>> foward:
>> >
>> >       https://github.com/behdad/cairo/commits/font-variations
>> >     <https://github.com/behdad/cairo/commits/font-variations>
>> >
>> >
>> > Thanks for those fixes, Behdad. Taking another look at the test, I'm not
>> > sure what I was thinking - it was checking the width axis, but the font
>> > we use only has weight and contrast as axes.
>> > i've pushed all the fixes to
>> >
>> > https://github.com/matthiasclasen/cairo/tree/wip/matthiasc/
>> font-variations
>> >
>> > Does this work for you now, Adrian ?
>>
>> It works with freetype 2.8.0, but not 2.8.1. Here are the results of
>> testing with different combinations of freetype and fontconfig.
>>
>> freetype 2.8.0, fontconfig 2.11.0 : pass
>>
>> freetype 2.8.0, fontconfig 2.12.5 : pass
>>
>> freetype 2.8.0, Behdad's fontconfig (2d0063948a44) : pass
>>
>> freetype 2.8.1, fontconfig 2.11.0 : fail
>>
>>   axis Weight, value 300
>>   axis CNTR, value 0
>>   axis Weight, value 0
>>   axis CNTR, value 0
>>   Axis Weight: not expected value (0 != 300.5)
>>
>> freetype 2.8.1, fontconfig 2.12.5 : fail
>>
>>   axis Weight, value 300
>>   axis CNTR, value 0
>>   axis Weight, value 0
>>   axis CNTR, value 0
>>   Axis Weight: not expected value (0 != 300.5)
>>
>> freetype 2.8.1, Behdad's fontconfig (2d0063948a44) : fail
>>
>>   axis Weight, value 300
>>   axis CNTR, value 0
>>   axis Weight, value 0
>>   axis CNTR, value 0
>>   Axis Weight: not expected value (0 != 300.5)
>>
>>
>
> I'm seeing those failures with freetype 2.8.1 too. They are somewhat
> mysterious - if I reorder the tests different ones fail. The fact that they
> sometimes report values that are nowhere to be found in the input, and
> sometime reports 0, which is not in the allowed range for the axis
> makes me think that something goes wrong in freetype.
>



-- 
behdad
http://behdad.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20170921/56f58ec3/attachment.html>


More information about the cairo mailing list