PDF backend (was: A question about cbook.is_string_like)

Andrew Straw <strawman@...36...> writes:

When I get back to that manuscript (ahem), I'll probably try to bang
the PDF backend further into shape. What bits need to be
added/fixed? Is the PDF backend TODO list documented anywhere?
where?

The TODO list is in the comments of backend_pdf.py:

# * the alpha channel of images
# * image compression could be improved (PDF supports png-like compression)
# * encoding of fonts, including mathtext fonts and unicode support
# * Type 1 and Base-14 font support (i.e., "pdf.use_afm")
# * TTF support has lots of small TODOs, e.g. how do you know if a font
# is serif/sans-serif, or symbolic/non-symbolic?
# * draw_markers, draw_line_collection, etc.
# * use_tex

I think the most important thing to fix is the font support. TTF
embedding mostly works but I haven't figured out the encoding issues,
and it would be really nice to be able to do font subsetting. I was
going to look into the Fonttools library by Just van Rossum, but
lately I've been too busy with other things to.

"Nicolas Grilly" <nicolas.grilly@...475...> writes:

I've just some issues with:
- text alignment (I fixed it on my working copy of matplotlib);

Great! Is there a patch somewhere?

ยทยทยท

--
Jouni

"Nicolas Grilly" <nicolas.grilly@...475...> writes:
> I've just some issues with:
> - text alignment (I fixed it on my working copy of matplotlib);

Great! Is there a patch somewhere?

Yes, I'm preparing one and I'll submit it in the next few days.