<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19019">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Have been trying to write vertical text like 
this</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>H</FONT></DIV>
<DIV><FONT size=2 face=Arial>e</FONT></DIV>
<DIV><FONT size=2 face=Arial>l</FONT></DIV>
<DIV><FONT size=2 face=Arial>l</FONT></DIV>
<DIV><FONT size=2 face=Arial>o</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>using pangocairo on win32, but am having absolutely 
no luck at all. The code I'm using is the following</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>PangoLayout *layout= pango_cairo_create_layout 
(cr);<BR>PangoContext*&nbsp; context = pango_layout_get_context(layout);</FONT>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>PangoFontDescription 
*font_description;</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 
face=Arial>&nbsp;pango_context_set_gravity_hint(context,PANGO_GRAVITY_HINT_STRONG);<BR>&nbsp;pango_context_set_base_gravity(context,PANGO_GRAVITY_EAST);<BR>&nbsp;font_description 
=pango_font_description_from_string("Micr 27");</FONT></DIV>
<DIV><FONT size=2 
face=Arial>&nbsp;pango_layout_set_font_description(layout,font_description);</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 
face=Arial>pango_font_description_free(font_description);</FONT></DIV>
<DIV><FONT size=2 face=Arial>pango_layout_context_changed(layout);</DIV>
<DIV>pango_layout_set_markup(layout,"Hello",-1);</DIV>
<DIV>&nbsp;</DIV>
<DIV>cairo_translate(cr,60,20);<BR>cairo_set_source_rgb(cr, 0.0, 0.0, 
0.0);</DIV>
<DIV>&nbsp;</DIV>
<DIV>cairo_rotate(cr,M_PI/2);<BR>pango_cairo_update_context(cr,context);</DIV>
<DIV>pango_cairo_show_layout (cr, layout);<BR></DIV>
<DIV>g_object_unref (layout);</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>With Pango_GRAVITY_SOUTH everything works fine, but as soon as I change 
this I get squares. Looked at a bunch of example (linux based) and these don't 
seem to work in my case either. Am I missing a step that is required for windows 
to get this working.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>&nbsp;</DIV>
<DIV>Michael<BR></DIV></FONT><FONT size=2 face=Arial></FONT></DIV></BODY></HTML>