This site is no longer active and is available for archival purposes only. Registration and login is disabled.

localized text, ascii, unicode (ppc 2003)


localized text, ascii, unicode (ppc 2003)

Postby Zdenek » Jun 4, 2004 @ 10:27am

Hello,
We are evaluating GD 301 and I've got into some troubles with national (french and czech) characters, perhaps someone will be able to help:

I've made png with ascii characters followed by national ones, I read some posts about unicode here but do not understand how to correctly create font with CreateFont() specialy I do not understand what Johan meant by 'unicode ASCII string' in 'Problem with german special characters' thread.
Does it means that i have to provide characters in UTF8 or in local codepage to CreateFont() ?

Is the font limited to 256 characters?

Does it all means that I have to use UTF8 or local codepage (say win1251) while using DrawText() even its parameter is wide (TCHAR) string?

example:
when i've add czech character 's with caron' (U+0161) at the very end of font and then tried to DrawText() string "a's with caron'" I got two 's with caron's on the screen
from this it seems to me (a reverse guess) that GD internal character table is a char array. so 0x161 (letter 's with caron') is truncated to 0x61 (letter 'a') so whenever i try to draw letter 0x61 or 0x161 it's the same bitmap letter. correct?
What steps should i take to get GD working with unicode strings?

best regards
- Zdenek Nemec - zero(at)mapfactor(dot)com
Zdenek
 


Postby vince_mad » Jun 4, 2004 @ 10:59am

Hi,
I hope this will help you,
I already asked about font creating and how to use CreateFont.
Please check a previous thread with the subject "Font size" to see how I solved my problem.
But I must admit that I didn't try to add foreign characters...
Regards.
Vincent.
User avatar
vince_mad
pm Member
 
Posts: 136
Joined: Mar 30, 2004 @ 7:40pm
Location: Paris, France


Postby Zdenek » Jun 4, 2004 @ 2:13pm

Zdenek
 


Unicode font problem

Postby sasa » Jul 21, 2004 @ 2:50pm

User avatar
sasa
pm Member
 
Posts: 7
Joined: Mar 24, 2004 @ 4:14pm
Location: Serbia/Novi Sad


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum