W3C home > Mailing lists > Public > public-css-testsuite@w3.org > February 2013

Re: Allow @font-face and TTF font embedding in tests? (Japanese fonts)

From: Chris Lilley <chris@w3.org>
Date: Fri, 15 Feb 2013 07:17:31 +0100
Message-ID: <144308680.20130215071731@w3.org>
To: "Gérard Talbot" <css21testsuite@gtalbot.org>
CC: "Public CSS test suite mailing list" <public-css-testsuite@w3.org>, "taka" <takaoshiyama@gmail.com>
Hello Gérard,

Wednesday, February 13, 2013, 8:35:29 PM, you wrote:

(Chris wrote)
>> I  would  prefer  to see woff rather than raw truetype or opentype
>> fonts.

> Unfortunately, I am not familiar with woff right now ... and how to
> create a .woff format with/from a .ttf format...

WOFF  is Web Open Font Format and is a W3C Recommendation.

It takes an SFNT font (ie TrueType or OpenType), makes a header, and
compresses each table in the font.Metadata (such as links to licening)
can also be included.

Making  one is trivial. Download this command line tool (from jonathan
Kew, one of the editors of the WOFF spec; source included)

compile, and then

sfnt2woff foo.ttf

makes foo.woff

Best regards,
 Chris                            mailto:chris@w3.org
Received on Friday, 15 February 2013 06:17:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:13:25 UTC