Hello,
This is an obscure problem but I thought I would ask in case it was a know issue with wxWidgets.
We have a panel where we display true type text inside a border outline, the outline consists of arc and line
objects. The arc objects are displayed using a stipple mask.
The border outline can be turned on and off. When the outline is off, the true text displays correctly but
when it is on, the text disappears. This is on Linux Only, Windows is fine.
Any idea, why this happens. Could it be a problem with wxWidgets?
Thank you.
wxWidgets: 3.1.0, 3.0.2
Os: Red Hat Enterprise Linux Workstation release 6.9 (Santiago)
Compiler: (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
True Type Text Disappears with Filled Arcs (Linux Only)
True Type Text Disappears with Filled Arcs (Linux Only)
- Attachments
-
- sdsdsd
- TrueTypeTextNormal.PNG (10.74 KiB) Viewed 1443 times
-
- TrueTypeTextDisappears.PNG (6.15 KiB) Viewed 1443 times
Re: True Type Text Disappears with Filled Arcs (Linux Only)
In which order is the content drawn? Text after outline? If yes, try changing the order.
Use the source, Luke!
Re: True Type Text Disappears with Filled Arcs (Linux Only)
Yes, it was text after outline and I reversed it and it now works. I would think it would be the other way around.
Thanks!
Thanks!
Re: True Type Text Disappears with Filled Arcs (Linux Only)
I guess the reason is that you didn't reset the stipple mask after drawing the outline.The arc objects are displayed using a stipple mask.
Use the source, Luke!
Re: True Type Text Disappears with Filled Arcs (Linux Only)
Is this the best way to reset the stipple mask?
wxBrush brush = dc->GetBrush() ;
brush.SetStipple(wxNullBitmap) ;
Also, Is there a problem drawing arcs with a stipple mask. We draw circles, polygons and arcs with a stipple
mask essentially the same way. The circles and polygons work perfectly but the arcs always come out filled.
Thanks.
wxBrush brush = dc->GetBrush() ;
brush.SetStipple(wxNullBitmap) ;
Also, Is there a problem drawing arcs with a stipple mask. We draw circles, polygons and arcs with a stipple
mask essentially the same way. The circles and polygons work perfectly but the arcs always come out filled.
Thanks.
- Attachments
-
- FilledObjects.PNG (11.43 KiB) Viewed 1390 times
Re: True Type Text Disappears with Filled Arcs (Linux Only)
Works for me under Windows, but i can't test under Linux.Also, Is there a problem drawing arcs with a stipple mask. We draw circles, polygons and arcs with a stipple
mask essentially the same way. The circles and polygons work perfectly but the arcs always come out filled.
If you can reproduce it in a small sample, please open a bug report at http://trac.wxwidgets.org/
Use the source, Luke!