views:

55

answers:

1

what's the best way to present a vector/font in html?

+1  A: 

The W3C develops and recommends the Scalable Vector Graphics standard for vector graphics. All major modern web browsers support and render SVG markup directly, except Internet Explorer unfortunately. However, IE 9 will support and render SVG directly. All version of IE from v5 onwards support the Vector Markup Language instead. While Microsoft continues to document VML, development of the format ceased in 1998.

You may be interested in checking out the following basic SVG examples:

Daniel Vassallo
how is it different from HTML5 Canvas?
Talima
can they be combined in use?
Talima
@Talima: VML and SVG are both vector-based, while canvas is a bitmapped system. You could still do vectors on canvas, but it's a lower level API. You may be interested in checking out [this](http://stackoverflow.com/questions/568136/svg-vs-canvas-where-is-the-web-world-going-towards) and [this](http://stackoverflow.com/questions/1650415/html5-canvas-element-and-svg).
Daniel Vassallo
@Talima: [This](http://people.mozilla.com/~vladimir/xtech2006/) is also interesting on the topic of SVG vs Canvas.
Daniel Vassallo
thanks. I want to use Canvas to display/draw a text document, can the fonts be drawn using svg? or would that be too slow?
Talima