Re: OpenType font variations and cairo
Behdad Esfahbod <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAF63+7VmAJ5-J2HneFsd7D3rCAPhawZuHDyy5G8xW_T2yis7hA@mail.gmail.com> |
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.
On Wed, Sep 13, 2017 at 2:41 PM, Matthias Clasen <[email protected]>
wrote:
> Over the last few days, Behdad and I worked together on supporting
> OpenType font variations in the Linux text rendering stack. This requires
> small additions to pango, fontconfig, and ... cairo.
>
> The cairo patch is simple and ready (i'm still debugging some issues on
> the pango side).
>
> It adds a new member to the font options struct, a string which contains
> the font variation settings.
>
--
behdad
http://behdad.org/
--
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo