[OpenFontLibrary] @font-face, is it really needed for font preview?

Nicolas Mailhot nicolas.mailhot at laposte.net
Mon Feb 9 08:24:13 PST 2009



Le Lun 9 février 2009 17:10, Ed Trager a écrit :
>
> Hi, Nicolas,

Hi Ed,

> Getting the SVG output small enough would really not be a problem.
> There are serveral ways to do it:
>
> * One way is to send over the SVG data but be sure to use CSS classes
> for the styling.  A lot of SVG graphics programs inline too much style
> information repeatedly, which is uneccessary.
>
> * Another approach would be to send back the curve data in a more
> minimalistic XML or JSON format, and then actually have Javascript
> classes that flesh out the data into SVG.  I've actually taken this
> approach before for loading X-Y plot data dynamically -- see demo at
> http://eyegene.ophthy.med.umich.edu/gladiatorcomponents/plot.html

This all works in a dynamic web context, but to integrate the preview
in static web pages (release notes...) or package preview tools
(packagekit...) you really need a small *standalone* svgz file.

-- 
Nicolas Mailhot



More information about the OpenFontLibrary mailing list