1,295
edits
| Line 92: | Line 92: | ||
== SVG Glyphs == | == SVG Glyphs == | ||
The glyphs themselves have an em-height of 1000 units (although maybe worth changing to 2048 to match TrueType convention) with the baseline at y=0. The | The glyphs themselves have an em-height of 1000 units (although maybe worth changing to 2048 to match TrueType convention) with the baseline at y=0. The bounding box specified in the OpenType metrics tables are ignored; the bounding-box of each SVG glyph DOM subtree is used instead. | ||
Two new paint server values are defined for use in SVG glyphs: <code>objectFill</code> and <code>objectStroke</code> (currently prefixed as <code>-moz-objectFill</code> and <code>-moz-objectStroke</code>). These values specify the fill or stroke applied to the text in the document that uses this font. Unlike SVG 1.1's style inheritance approach, they automatically take account of the change in coordinate systems from the document containing the text to the glyph document. | Two new paint server values are defined for use in SVG glyphs: <code>objectFill</code> and <code>objectStroke</code> (currently prefixed as <code>-moz-objectFill</code> and <code>-moz-objectStroke</code>). These values specify the fill or stroke applied to the text in the document that uses this font. Unlike SVG 1.1's style inheritance approach, they automatically take account of the change in coordinate systems from the document containing the text to the glyph document. | ||
edits