<div>I am prototyping functionality which will be used to overlay text onto video. The text can be of any font / language and will support various forms of animation. I currently have Pango and Cairo working together. Pango provides the font and layout and Cairo supports the rendering onto an ARGB surface. Most of the basics are working. I can select and render any installed font, scroll, fade, and resize the text. My next effort is to be able to do 'non-standard' (horzontal / left-to-right) layouts and support international fonts.<br>
<br>
I assumed that to handle right-to-left (i.e. Hebrew) or vertical (i.e. Chinese) fonts I would need to adjust the gravity attribute (and possibly rotate the text?) but this does not seem to work. I am currently using english fonts such (i.e. Arial) and would hope to see the text rendered vertically instead of horizontally (I am not yet rotating so I guess I would expect the characters to be rotated but the text layed out horizontally?). If I use anything but the default setting the text is rendered as small, hollow boxes. Can anyone provide some insight into how to properly achieve this?<br>
<br>
In addition, I would like to implement some code which could adjust the text on a character-by-character basis. This would be to allow for wrapping text around a curved surface, etc. Hopefully this is doable using Pango and Cairo alone.<br>
<br>
Thanks,<br>
Bob<br>
<br>
p.s. thanks again to all who helped with my previous confusion related to FontConfig and FreeType.</div>
<div id='u8CA692F9D95973E-14FC-D83' class='aol_ad_footer'><FONT style="color: black; font: normal 10pt ARIAL, SAN-SERIF;"><HR style="MARGIN-TOP: 10px">Get the <A title="http://www.mapquest.com/toolbar?NCID=mpqmap00030000000003" href="http://www.mapquest.com/toolbar?NCID=mpqmap00030000000003" target="_blank">MapQuest Toolbar</A>, Maps, Traffic, Directions & More!</FONT> </div>