Re: underlined text with pango_win32_render_layout



On Mon, 2005-05-16 at 22:34 +0200, Marco wrote:
> 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?

Sounds like a bug.	
						Owen


Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]