SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Embedded fonts in SVG

From: Michael D. <md...@st...> - 2007年07月10日 20:21:00
Actually, it just occurred to me that you could use 'defs' and 'use' to 
define characters as paths and reuse them. And that's something that 
works today in virtually any SVG renderer.
It totally blitzes the logical representation of the text (i.e. 
searching and copying as text etc.), but if it was only done for math 
text, then that's probably not a big deal. IMHO, math text is where 
matching the exact font is most important, where a reasonable substitute 
is often not installed, and where searching doesn't make a lot of 
sense. In any case, editing the SVG in something like Inkscape will be 
harder, since the text has become raw paths.
Thanks to ft2font, it was fairly easy to get outlines of math characters 
embedded in the SVG file. I've put up an example mathtext_demo.py SVG here:
 ftp://ftp.stsci.edu/tmp/mdroe/mathtext_demo.svg
I'll commit this code once it's cleaned up and better tested etc. if 
it's agreed this is something we want to do. I think in any case this 
should be optional -- it gives the file some portability at the expense 
of editability.
Cheers,
Mike
Carl Worth wrote:
> On 2007年7月10日 13:43:49 -0400, Michael Droettboom wrote:
> 
>> "major SVG renderers" support seems to be the issue at first glance.
>> None of the big open source options -- Firefox, inkscape, rsvg -- seem
>> to support it.
>> 
>
> That's my understanding as well.
>
> 
>> Until there's something readily available to test with, there's probably
>> not much point.
>> 
>
> It's a classic chicken-and-egg. I know the cairo-svg maintainer is
> hoping to add SVGFont stuff to cairo's SVG output to try to boostrap
> past this problem.
> 

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /