W3C home > Mailing lists > Public > www-svg@w3.org > February 2014

Re: SVG fonts discussion

From: Robert O'Callahan <robert@ocallahan.org>
Date: Tue, 11 Feb 2014 18:46:34 +1300
Message-ID: <CAOp6jLZwQB6LBmjTJCCYqVj9tkD1=JOxN+vybHb9yMreU9=bqg@mail.gmail.com>
To: Chris Lilley <chris@w3.org>
Cc: Erik Dahlstrom <ed@opera.com>, "www-svg@w3.org" <www-svg@w3.org>
On Tue, Feb 11, 2014 at 12:40 AM, Chris Lilley <chris@w3.org> wrote:

> Having to stuff the binary data into a base64-encoded data url is
> hacky. Not your fault, but it is.
>

FWIW, my code doesn't do that. It builds the font as a sequence of JS typed
arrays and then makes a Blob out of the concatenation of them, and then
createObjectURL can create a short URI referring to the Blob. No base64
encoding or data: URIs are involved. The Web platform is a lot better at
manipulating binary data than it used to be.
https://github.com/rocallahan/svg-opentype-workshop/blob/master/SfntTables.js#L172

>     Tav: I tried to do this with inkscape, but I ran into trouble
> >     since we use Pango for text layout, which doesn't let you
> >     insert a user font
> >     ... I was going to intercept the layout information from Pango,
> >     and just draw the SVG glyph
> >
> >     ChrisL: I should say, Behdad Esfabod has been at these meetings
> >     and is aware of this
> >     ... and is interested in adding this to Harfbuzz
>
> Behdad mentioned specifically that the assumption is the rendering is
> static. There is currently no facility to indicate a glyph rendering
> is animated, and to tell an application when the glyph updates or to
> give it a callback or other hook.
>
> Maybe he was referring to Pango?
>

I don't know. An important feature of the SVG-in-Opentype design is that
glyph shaping and metrics are not affected by animation, so the Harfbuzz
end of things is not affected by animation.

Rob
-- 
Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
waanndt  wyeonut  thoo mken.o w
Received on Tuesday, 11 February 2014 05:47:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:35 UTC