Hi!
I've been playing with Pango library meanwhile was implementing the Cairo
render to the Layer_Freetype class.
I've found the following:
1) Currently I've not found any API in Pango that scales directly the font
size vertically. If you're aware of it, please let me know. I know that it
is possible to scale the entire layout using Pango matrix and probably it
would do the job but it is not exactly what lib freetype does.
2) I've not found the Kerning feature yet in Pango. I'm sure it will be.
3) Alignment using Position parameter is cumbersome in Synfig. I can
emulate that effect by rendering line by line in Pango and aligning each
line using the position parameter like Synfig does now. I think that it is
not professional to have that alignment (the result depends on the line
length in characters). We should try to replace the position parameter by a
drop down selection for type of alignment (left, center, right) for the
whole paragraph.
4) In Pango the weight, font and style simply works! In Synfig they are
just there, and doesn't work.
5) If I use the x component of the size parameter to establish the Pango
font size I find that the Pango size result is correct, comparing the
letter size with a checkerboard with the same size than the font. Synfig's
render is bigger I don't find why. It looks like a bug in Software renderer
to me.
6) Pango-Cairo render is faster than Software in all situations. I don't
have statistics yet but it is about 1.5 to 2.5 times faster.
7) Pango offers a lot (many more!) options to control the text that makes
me think to use them in the future.
So it was just to inform you that the implementation is going on but that
it is possible that there were some differences with the current software
renderer.
Cheers!
--
Carlos
http://synfig.org
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl