For the free type wrapper, maybe the freetype-py may be of some help:
http://code.google.com/p/freetype-py/

I did not wrap all the freetype library but it already allows a fair amount of 
font manipulation/rendering.


For unicode/harfbuzz, I've found this example

https://github.com/lxnt/ex-sdl-freetype-harfbuzz

to be incredibly useful to understand the (poorly documented) library. The 
strong point of harfbuzz is to have no heavy dependencies (compared to pango 
for example). By the way, Behad is considering a refactoring of the library and 
it might be worth to interact with him (on the harfbuzz list) to see how this 
could ease a python wrapper (if you intend to use it of course).


In the current draft, you're speaking of rich text but I found no reference for 
a possible markup (or equivalent) to specify the different font, color, 
boldness, etc.



Nicolas



On May 30, 2013, at 8:27 PM, Chris Barker - NOAA Federal 
<chris.bar...@noaa.gov> wrote:

> On Thu, May 30, 2013 at 8:59 AM, Michael Droettboom <md...@stsci.edu> wrote:
>> I've drafted a MEP with a plan to improve some of the text and font handling
>> in matplotlib.
>> 
>> I'd love any and all feedback.
> 
> nice writ-up and thanks for workign on this.
> 
> One idea (alternative?) would be to put more effort into the
> "mathtext" renderer. TeX itself, of course does an outstanding job of
> laying out text, paragraphs, etc. I'm assuming that the core stuff is
> already in mathtext, so adding better support for regular old non-math
> text would be a less-than-huge deal. And we still wouldn't need the
> full how-to-split-pages and all that code for MPL.
> 
> Not sure about properly handling unicode issues, though modern TeX
> does support unicode.
> 
> With a fully-function mathtex, it could be the default (only?) text
> layout system for MPL, simplifying things quite a bit.
> 
> ... just a thought.
> 
> -Chris
> 
> 
> 
> -- 
> 
> Christopher Barker, Ph.D.
> Oceanographer
> 
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
> 
> chris.bar...@noaa.gov
> 
> ------------------------------------------------------------------------------
> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
> Get 100% visibility into your production application - at no cost.
> Code-level diagnostics for performance bottlenecks with <2% overhead
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap1
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to