Re: OpenType font variations and cairo

Matthias Clasen <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAFwd_vBhb9Ae--ABbo7WzF_5bmd+7jEPvRJHEDJ9KzMBSx0Ubg@mail.gmail.com>
On Fri, Sep 15, 2017 at 7:55 AM, Adrian Johnson <[email protected]>
wrote:

> On 15/09/17 21:05, Matthias Clasen wrote:
> > On Fri, Sep 15, 2017 at 6:51 AM, Adrian Johnson
> >
> >
> >     Is the text string supplied to cairo_font_options_set_variations()
> >     likely to be generated by sprintf or is it always read from an
> external
> >     source in C locale format?
> >
> >
> >  You have a good point here. The string is expected to be generated
> > programmatically, as in this example here:
> >
> > https://git.gnome.org/browse/gtk+/tree/demos/gtk-demo/font_f
> eatures.c?h=wip/matthiasc/font-variations#n454
>
> In cairo_begin_tag() where the attributes are expected to be generated
> programmatically, I ignore the locale since the strings as parsed in the
> same locale as the printf. That is also why I avoided commas between the
> key=value so it will work with decimal commas.
>

I don't think thats a great idea here. While the strings are generated at
runtime most of the time, you might as well
specify them in a .ui file, or in css, for that matter. Best to fix the
locale.

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.