1,295
edits
| Line 94: | Line 94: | ||
== SVG Glyphs == | == SVG Glyphs == | ||
The glyphs themselves have an em-height of 1000 units | The glyphs themselves have an em-height of 1000 units with the baseline at y=0. (Note that the SVG 'viewbox' attribute can be used to easily select a different coordinate system.) The bounding boxes 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