[cairo] [PATCH] test: Always use DejaVu Sans as default font

Andrea Canciani ranma42 at gmail.com
Thu Jul 2 02:52:15 PDT 2015


On Thu, Jul 2, 2015 at 12:05 AM, Lawrence D'Oliveiro <
ldo at geek-central.gen.nz> wrote:

> On Wed,  1 Jul 2015 12:00:49 +0200, Andrea Canciani wrote:
>
> > This change should not affect Linux environments, assuming that the
> > default font is already set to "DejaVu Sans".
>
> On Linux environments, I would expect to see Fontconfig in use. This
> can take a generic name like “Sans Serif” and map it to whatever font
> the user desires.
>

Yes, but (for the test suite) if this happens you are likely already
getting failures when you test cairo, because unless the user-chosen font
glyphs have the same shape as the DejaVu Sans ones, the output of the test
cases will not match the reference.
Please notice that most tests already set the font to
CAIRO_TEST_FONT_FAMILY " ...".

Andrea


> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20150702/0bc76a15/attachment.html>


More information about the cairo mailing list