I am developping a gui tool in which I am using a TGListBox for printing some text. It was working perfectly on my ubuntu computer, but when I tried it on a mac os computer, I got this error message when trying to write text entries in the TGListBox
Error in <DrawTextLineNoKerning>: Font could not encode all Unicode characters in a text
Sorry but it’s not so easy, I don’t have the mac os laptop with me so I cannot test it. But for information, when installing root on the concerned laptop, we get an error with the libxml2 library refering to “unicode/ucnv.h”. So we have deactivated the xml library in root compilation. Could it be linked ?
No … I do not think so. Your initial problem seems related to the GUI fonts. May be @bellenot has an idea about it. But in any case a reproducer would help.
By the way do you pass some special characters to the TGListBox ? like French accents ?
As you can see on the attached screen-shot (bottom left corner), there is no specitic character (from my linux laptop). Does it means that I cannot write anything in a TGListBox on mac ???
And the fact that as I said, when trying to install the xml library, we had an error also concerning unicode "unicode/ucnv.h”, cannot be the source of the problem ? A missing package on its mac ?
Cool, I could test it on the mac of my colleague and it works. The error was comming from the lines “uGC->GetGC())” that I used for an unknown reason…
Thanks a lot !