| Text doesn't get displayed in 6.5 |
 |
| Venugopal Gudimetla |
2011/03/10 18:06 |
Hi, any hints and/or suggestions are welcome. I built OCC 6.5 on 32 bit linux ubuntu 10. I linked and built using ftgl and freetype2 libraries. My TKOpengl library shows it got linked to the above mentioned font libraries. But in my application text is not displayed after linking with 6.5 libraries. I had no problem with OCC6.3. Did anyone else encounter this problem or is it just me?
Thanks,
Venu
|
 |
| |
 | | Fotis Sioutis |
2011/03/10 18:58 |
I have the same issue under embarcadero ( borland ) on WIN32 platform... In my case i noticed that text is not displayed on the trihedron axes initially. The strange thing in my case is that if i hide the trihedron and then display it again somehow text shows up perfectly. I did not have free time to dig but when time allows i will try to find out what goes wrong and report here my results.
Fotis |
 |
| |
 | | Venugopal Gudimetla |
2011/03/10 19:14 |
Thanks Fotis, in fact that is exactly my problem too. I will try out your method, may be it needs to be redrawn? just guessing.
Venu |
 |
| |
 | | Venugopal Gudimetla |
2011/03/11 05:09 |
Okay I made it work.
in Osd_FontMgr.cxx line, change:
Display * disp = XOpenDisplay("localhost:0.0");
to
Display * disp = XOpenDisplay(":0.0");
This could be true for all Unix based systems? not sure but it worked on ubuntu 10.
Fotis, first I tried to hide and then replay the trihedron, but for me for some reason, it didn't work. It works now with the above change.
Thanks,
Venu
|
 |
| |
 | | Venugopal Gudimetla |
2011/03/11 05:09 |
| sorry the line number is 239 |
 |
| |
 | | Denis Barbier |
2011/03/11 08:46 |
Hello,
Thanks for the patch, it will be very useful. One could use XOpenDisplay(NULL) so that this works on any display, not just :0.0 |
 |
| |
 | | Venugopal Gudimetla |
2011/03/11 13:42 |
Hi Denis, Thanks for pointing it out, that helps.
Venu |
 |
| |
 | | Yuriy Sinithin |
2011/03/28 01:30 |
| Many Thanks for your Patch |
 |
| |