Paul Kienzle wrote:
On Fri, Sep 07, 2007 at 03:09:10PM -0400, Michael Droettboom wrote:Paul Kienzle wrote:With the embedded fonts, you mean the text just doesn't show up at all?On Fri, Sep 07, 2007 at 12:09:01PM -0400, Michael Droettboom wrote:Paul Kienzle wrote:Note: Adobe SVGViewer doesn't see the embedded fonts, but it works if I have the fonts installed. Oh, well!It looks the same as the version without embedded fonts, which is that it chooses some incorrect default font with the wrong character codes as I showed earlier.
That's very surprising, since when the characters are embedded, there's no notion of characters (<text> elements) in the file at all -- it just uses references to paths in the file that have non-meaningful names like c_a2.
I thought unicode was supposed to give unique codes to the characters so that even if the font was wrong, at least you would get the correct glyph from the font. Or does this only happen at a higher level?
Unfortunately, the Bakoma fonts (Truetype conversions of TeX fonts) are not encoded in Unicode. They're in an encoding that closely resembles the somewhat arbitrary encoding that was used to design the original fonts (that pre-dates Unicode). Unless we were to remap those fonts to Unicode, we have to suffer along with the encoding they have. I've been playing with ways to rebuild the fonts, but nothing has come up very satisfactory. Long term, hopefully by the time I retire, the Stix fonts will be available and we can go over to Unicode whole-hog.
Do you know if the SVG output from Cairo works with Adobe? They use a similar (but not identical) approach to embedding the character outlines.I'm not set up to run Cairo, but I can check if someone sends me an svg.
Attached (gzipped). -- Michael Droettboom Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA
mathtext_demo_cairo.svg.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel