I am trying to send underlined text to the printer in windows xp with the following code:
StartDoc(printer_hdc, &docInfo); StartPage(printer_hdc); PangoLayout *m_pLayout = pango_layout_new(pango_win32_get_context()); pango_layout_set_markup(m_pLayout, "<u>test</u>" ,-1); pango_win32_render_layout (printer_hdc, m_pLayout, 100, 100); EndPage(printer_hdc); EndDoc(printer_hdc); DeleteDC(printer_hdc);
But i am not getting the expected result, the word test is printed with a line above it, the line is across the whole page (not just above test).
I used the same technique in linux with pango an gnome-print and there i got the expected result.
Is this a bug or am i doing someting wrong?
gtk+ version is 2.6.7
Thanks in advance.
-- Marco _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list