W3C home > Mailing lists > Public > www-font@w3.org > April to June 2011

Re: SVG Fonts inside of OpenType fonts? [Cross-post from www-font@w3.org]

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 30 Jun 2011 13:07:53 +1200
Message-ID: <BANLkTimreKLo236QvKhDiGbh9iPA1q4HEA@mail.gmail.com>
To: Tal Leming <tal@typesupply.com>
Cc: Laurence Penney <lorp@lorp.org>, www-font@w3.org, list.adam@twardoch.com
On Thu, Jun 30, 2011 at 2:14 AM, Tal Leming <tal@typesupply.com> wrote:

> On Jun 28, 2011, at 6:04 PM, Robert O'Callahan wrote:
>
> > Should glyphs in sfnt-SVG fonts reflect styling set up by the document's
> CSS that affects inline SVG?
> >
> > Given the above answer, definitely not, since a document's CSS only
> affects that document.
>
> This is something that I've been wondering about. An example: I make a SFNT
> wrapped SVG font that has three layers in each glyph: shadow, fill and
> highlight. A web author decides to use this font in HTML but doesn't like
> the colors that I've defined in the font. As I understand it, the web author
> would not be able to modify the colors defined in the glyph layers via CSS
> or any other means (apart from modifying the SVG in the SFNT). Is that
> correct?
>

Correct. However, you could apply color transformations to the text using
SVG filters, which would cover some use-cases (e.g. if you want to convert
color glyphs to grayscale, or darken them, etc).

In general I think it makes sense that if you want to modify the details of
some glyphs, you create a modified font.

Rob
-- 
"If we claim to be without sin, we deceive ourselves and the truth is not in
us. If we confess our sins, he is faithful and just and will forgive us our
sins and purify us from all unrighteousness. If we claim we have not sinned,
we make him out to be a liar and his word is not in us." [1 John 1:8-10]
Received on Thursday, 30 June 2011 01:08:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 30 June 2011 01:08:24 GMT