W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2008

Font matching algorithm and test text-intro-201-t.svg

From: Cyril Concolato <cyril.concolato@enst.fr>
Date: Wed, 05 Nov 2008 11:37:40 +0100
Message-ID: <49117774.1080408@enst.fr>
To: SVG Working Group WG <public-svg-wg@w3.org>
CC: Jean Le Feuvre <jean.lefeuvre@enst.fr>

Hi all,

The test text-intro-201-t.svg contains the following snippet of code:

  <g xml:id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
    <text x="257" y="60" font-size="32" font-weight="bold">Bold</text>

In this example, the SVGFreeSansASCII font does not have a bold equivalent but the sans-serif has. Is it a valid interpretation of the SVG [1], XSLT[2], CSS[3] specs and in particular of the font matching algorithm and of the following quote: "'font-weight' is matched next, it will never fail. (See 'font-weight' below.) " to display the 'Bold' text using the SVGFreeSansASCII font without boldness ?

[1] http://dev.w3.org/SVG/profiles/1.2T/publish/text.html#FontWeightProperty
[2] http://www.w3.org/TR/2006/REC-xsl11-20061205/#font-weight
[3] http://www.w3.org/TR/CSS2/fonts.html#algorithm
Cyril Concolato
Maître de Conférences/Associate Professor
Groupe Mutimedia/Multimedia Group
Département Traitement du Signal et Images
/Dept. Signal and Image Processing
Ecole Nationale Supérieure des Télécommunications
46 rue Barrault
75 013 Paris, France
Received on Wednesday, 5 November 2008 10:38:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:09 UTC