weatedelennoy
Registered
Hello All!
I have a problem with drawing of unicode text to a current graphic port.
I tried to use TXNDrawUnicodeTextBox(), TXNDrawCFStringTextBox() and ATSUDrawText() - for Mac Roman it's working fine, but for Japanese or Korean it's output some "black squares" instead of the proper symbols. I tried to cange the font (located by calling ATSUFindFontFromName() on kFontJapaneseLanguage, but it didn't change anything. Then, I tried to setup MLTE by calling the TXNInitTextension() (by setting the TXNMacOSPreferredFontDescription.fontID and TXNMacOSPreferredFontDescription.encoding), but it didn't help too. _
The OS version is MacOS X 10.2.6. Finder can display the japanese filenames without any problems, so probably it's not a matter of OS settings. The unicode string i'm trying to display is a filename, returned by FSGetCatalogInfo().
What else can I try to fix the problem?...
Thanks.
I have a problem with drawing of unicode text to a current graphic port.
I tried to use TXNDrawUnicodeTextBox(), TXNDrawCFStringTextBox() and ATSUDrawText() - for Mac Roman it's working fine, but for Japanese or Korean it's output some "black squares" instead of the proper symbols. I tried to cange the font (located by calling ATSUFindFontFromName() on kFontJapaneseLanguage, but it didn't change anything. Then, I tried to setup MLTE by calling the TXNInitTextension() (by setting the TXNMacOSPreferredFontDescription.fontID and TXNMacOSPreferredFontDescription.encoding), but it didn't help too. _
The OS version is MacOS X 10.2.6. Finder can display the japanese filenames without any problems, so probably it's not a matter of OS settings. The unicode string i'm trying to display is a filename, returned by FSGetCatalogInfo().
What else can I try to fix the problem?...
Thanks.