John Hunter wrote:
> On Nov 6, 2007 1:05 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote:
> 
>> This fontforge script seems to do the conversion quite well:
>>
>>         #!/usr/bin/fontforge
>>         Open($1);
>>         Generate($1:r+".ttf");
>>         Quit(0);
>>
>> If there are no objections, I'll go ahead and do that and commit the
>> results.
> 
> This certainly seems to be the path of least resistance.  Would there
> be much savings in terms of file size if we just extracted the fonts
> we need, eg the parts we need for latex expressions.  If a significant
> portion of the fonts are relatively inaccessible unicode, maybe we
> should just distribute the subset we need.

Now that subsetting works, I'd be more inclined to just include 
everything and let the backends sort it out.  The total filesize of all 
the STIX fonts converted to .ttf is 1,334,524 bytes.  Removing the font 
files that matplotlib can't currently access at all, the total is 
1,167,920 bytes.

I don't consider that to be a large amount of space anymore. 
(Sourceforge provides the hosting and bandwidth anyway, right? ;)

There is, of course, some time and memory overhead to loading larger 
fonts, but it may not be significant.

The other issue with subsetting the fonts before distributing them is 
just a matter of person-time: someone has to write the scripts to do it, 
and then re-run them when the STIX fonts are updated.

In the meantime, I'll commit the .ttf versions of the STIX fonts, and 
remove the .otf versions, which doesn't preclude subsetting the fonts 
further down the road.

Cheers,
Mike

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-------------------------------------------------------------------------
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

Reply via email to