Text doesn't get displayed in 6.5

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's picture

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's picture

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's picture

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's picture

sorry the line number is 239

Denis Barbier's picture

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's picture

Hi Denis, Thanks for pointing it out, that helps.

Venu

JuryS's picture

Many Thanks for your Patch