[OpenFontLibrary] @font-face, is it really needed for font preview?
Nicolas Spalinger
nicolas_spalinger at sil.org
Mon Feb 9 12:50:22 PST 2009
Nicolas Mailhot wrote:
>
> 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.
Indeed, that would be very useful for both review of existing packages
(like we have in Debian were we currently use "convert" from imagemagick
which is rather limited in coverage) and for providing specimens in
relation with the packages.
Most font previewers I've come across use imlib2 from Rasterman, maybe
we can ask him to look into that?
OTOH I'm wondering if pango-view or fontimage could be extended...
Cheers,
--
Nicolas Spalinger, NRSI volunteer
Debian/Ubuntu font team / OpenFontLibrary
http://planet.open-fonts.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.freedesktop.org/archives/openfontlibrary/attachments/20090209/57235ef1/attachment.pgp
More information about the OpenFontLibrary
mailing list