Letractively / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

@font-face through css stylesheet #348

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The svg spec supports using css stylesheets, linked in the following manner:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet href="external.css" type="text/css"?>
<svg>...</svg>

 - or an embeded style sheet.

See: http://www.w3.org/TR/SVG/styling.html

properly implemented, it means @font-face can be supported for SVGs, and
browsers can display fonts not installed locally.

Attached: test case. FF 3.5 supports @font-face through css natively. IE
requires EOT fonts for on-page display (included, converted with ttf2eot). 

Original issue reported on code.google.com by sudr...@fusemail.com on 17 Oct 2009 at 7:13

Attachments:

GoogleCodeExporter commented 8 years ago
Is this bug arguing for using @font-face rules in normal HTML CSS files, where 
the
@font-face definition is an SVG file? If that is true, I don't believe SVG Web 
can
every support that use case. I want to avoid parsing external CSS stylesheets 
that
are for HTML pages (we will eventually support inline and external CSS 
stylesheets
inside SVG files themselves).

Original comment by bradneub...@gmail.com on 17 Oct 2009 at 7:33

GoogleCodeExporter commented 8 years ago
It's more along the lines of:

1. @font-face in css seems to be the only way to load truetype font resources 
from
the server. The provided css happens to work in both html & svg contexts (and
confirms font paths are correct).

2. A concern that Embedded OpenType (.eot) support might be required due to font
embedding issues. I've seen nothing saying that Flash would directly support 
this.

Original comment by sudr...@fusemail.com on 20 Oct 2009 at 2:24

GoogleCodeExporter commented 8 years ago
We don't plan on supporting any binary font formats in SVG Web, either OpenType,
TrueType, or EOT. Marking this bug as candidate for WONTFIX.

Original comment by bradneub...@gmail.com on 20 Oct 2009 at 7:08

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 22 Oct 2009 at 9:44