GC.drawText throws Pango errors [message #1699207] |
Mon, 22 June 2015 11:11  |
Eclipse User |
|
|
|
(SWT:18911): Pango-CRITICAL **: pango_font_description_set_size: assertion 'size >= 0' failed
(SWT:18911): Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Liberation Sans Bold Italic'
(SWT:18911): Pango-WARNING **: font_face status is: out of memory
(SWT:18911): Pango-WARNING **: scaled_font status is: out of memory
(SWT:18911): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Liberation Sans Bold Italic', text='48'
Hi all. I'm trying to draw some text on a canvas, and when I go to draw the text, I am getting the errors above and the text is rendered as square boxes. I draw other text in this program on a canvas, and that works fine every time, but I have no idea why I could be having this problem. Does anyone have any idea?
|
|
|
Re: GC.drawText throws Pango errors [message #1699345 is a reply to message #1699207] |
Tue, 23 June 2015 09:53  |
Eclipse User |
|
|
|
The 'out of memory' errors makes me wonder if you're running out of resources -- too many fonts/images/widgets etc. Try putting your snippet in a standalone program and see if it works. If it works in the standalone then look at the SWT Sleak tool to track down the errant allocations.
Brian.
|
|
|
Powered by
FUDForum. Page generated in 0.10781 seconds