[ODFPlugtest] Fonts for CSS Testing
Jos van den Oever
jos.van.den.oever at kogmbh.com
Sat Oct 22 13:56:09 CEST 2011
On Thursday, October 13, 2011 15:29:55 PM robert_weir at us.ibm.com wrote:
> Just noticed this:
>
> http://wiki.csswg.org/test/fonts
>
>
> "The Ahem font was developed by Todd Fahrner to help test writers
> develop predictable tests. The font's em square is exactly square.
> Its ascent and descent is exactly the size of the em square. This
> means that the font's extent is exactly the same as its line-height,
> meaning that it can be exactly aligned with padding, borders, margins,
> and so forth."
>
> This might be interesting for ODF interop testing as well. It reduces one
> source of variability that is outside of the application's control.
I think it 's a great idea. I've attached an example file that embeds the
AHEM____.TTF. It's an ODF 1.0 so we can test it applications that only support
an older specification too.
The relevant ODF for embedding looks like this:
<office:font-face-decls>
<!-- in this example, font matching is bypassed by using style:name -->
<style:font-face style:name="myfont" svg:font-family="'AHEM'">
<svg:font-face-src>
<svg:font-face-uri xlink:href="AHEM____.TTF">
<svg:font-face-format svg:string="truetype"/>
</svg:font-face-uri>
</svg:font-face-src>
</style:font-face>
</office:font-face-decls>
<office:styles>
<style:style style:name="embeddedfont" style:family="paragraph">
<style:text-properties style:font-name="myfont" fo:font-size="12pt"
style:letter-kerning="true" fo:color="#000000"/>
</style:style>
</office:styles>
In a Flat XML ODF the font would be embedded as data uri in xlink:href.
Cheers,
Jos
--
Jos van den Oever, software architect
+49 391 25 19 15 53
074 3491911
http://kogmbh.com/legal/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: embeddedfont.odt
Type: application/vnd.oasis.opendocument.text
Size: 4099 bytes
Desc: not available
URL: <http://open.nlnet.nl/pipermail/plugtest/attachments/20111022/ca15e2f0/attachment.odt>
More information about the Plugtest
mailing list