xlib: Fix invocation of XRenderFindFormat()

The 'count' parameter is an indication to libXrender of the number of
matches to skip before reporting (rather than a limit on the number to
report). As we only want the first match, always pass 0.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
pdf: Fix crash

Bug 61451
[FT] Prefer downscaling bitmap glyphs to upscaling

Say, you have bitmap strikes for sizes 50ppem and 100ppem.
To render at 60ppem, it's much better to downscale the 100ppem
bitmap than upscale 50ppem one.  Prefer downscaling.
gl: Export query for EGLContext and EGLDisplay from device

Similar to glx, add query for the EGLContext and EGLDisplay to egl-based
cairo devices.
gl: Fix typo s/bool/cairo_bool_t/

One quickly gets used to having stdbool.h available.
stroke: Fix large line widths for fallback stroke shaper

Fix the test case line-width-tolerance for the fallback stroke shaper.
Instead of drawing quads between spline points, draw triangle based on
the actual spline edges. This roughly follows the approach of the
tristrip and polygonal shapers.

This commit also replaces the fixed point
_lines_intersect_or_are_coincident with slower, floating point
intersection code.  _lines_intersect_or_are_coincident was faultily
trying to skip doing an actual division.
stroke: Use round-joins near inflection points of splines

Similar to b7bd5ae4f3da44131261711bb236cd7aa24a3ae3, but applied to the
fallback stroke shaper.