[cairo] OpenType font variations and cairo

Matthias Clasen matthias.clasen at gmail.com
Fri Sep 15 00:45:30 UTC 2017


On Thu, Sep 14, 2017 at 8:00 PM, Behdad Esfahbod <behdad at behdad.org> wrote:

> Another issue:
>
> +static void
> +cairo_ft_apply_variations (FT_Face     face,
> +                           const char *variations)
> +{
> +    FT_MM_Var *ft_mm_var;
> +    FT_Error ret;
> +
> +    if (!variations || !variations[0])
> +        return;
> +
> +    ret = FT_Get_MM_Var (face, &ft_mm_var);
>
> This fails to reset the variations on the face, if variations is NULL or
> empty.
>

Fixed this one.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20170914/c7cf2c75/attachment.html>


More information about the cairo mailing list