Commit graph

9 commits

Author SHA1 Message Date
Bryce Harrington
dc93ea7711 test: Use C comment syntax, not C++ 2018-06-13 15:20:34 -07:00
Alexandre Bique
ccdb8e2307 Fix test compilation when font-config is disabled
Building cairo without font-config fails because test/font-variations.c
was getting compiled without freetype2.

Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2018-05-31 18:39:51 -07:00
Uli Schlachter
fba7a7ca27 Skip font-variations test for missing fonts
Signed-off-by: Uli Schlachter <psychon@znc.in>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2018-04-02 11:08:46 -07:00
Behdad Esfahbod
14f5b98d22 Fixup on previous commit 2018-01-19 11:10:13 -08:00
Bryce Harrington
4a09fec668 test: Fix compile with older FreeType without FT_Get_Var_Design_Coordinates
Extend earlier fix to the tests as well.
2018-01-18 21:02:12 -08:00
Matthias Clasen
46034b0547 Make the font-variations test pass
Not sure what I was thinking - the test is checking the width
axis, but the font we're using has only weight and contrast
as axes...
2017-12-19 15:18:57 -05:00
Behdad Esfahbod
34047d11db [variations] Fix test
This does not exercise merging of variations from font-options and from
pattern.  Before this commit the code was more towards doing that.
2017-12-19 15:17:01 -05:00
Behdad Esfahbod
6accf16093 [variations] Towards fixing test 2017-12-19 15:17:01 -05:00
Matthias Clasen
38b6e23609 Add a test for font variations
This test checks that passing font variation settings via
font options has the desired effect. It checks this by reading
the effective axis values out of the FT_Face after creating
a font with these options.
2017-12-19 15:17:01 -05:00