Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

Support for french or other accented characters


Support for french or other accented characters

Postby maurice » Nov 12, 2003 @ 3:34pm

Does CGapiBitmapFont work with accented character like é and ç?

This is for a french localisation our english game.
Since it is a somewhat older game, it uses gapidraw 1.04.


Maurice
maurice
pm Member
 
Posts: 37
Joined: Feb 26, 2003 @ 9:08pm
Location: Rotterdam


Postby warmi » Nov 12, 2003 @ 3:44pm

You are responsible for creating CGapiBitmapFont so it is up to you which characters get included and which are not.
warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby maurice » Nov 12, 2003 @ 3:47pm

True, but if I put an é in the bitmap and the é in the CreateFont string, will it still work? Since é is above the standaard ASCII limit of 128 characters (é = 233)


Maurice
maurice
pm Member
 
Posts: 37
Joined: Feb 26, 2003 @ 9:08pm
Location: Rotterdam


Postby Johan » Nov 20, 2003 @ 1:50pm

maurice: It should work on ASCII character codes up to 255. Please report back if it doesn't.
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[http://www.gapidraw.com]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby norwy » Jul 8, 2007 @ 3:28pm

Hi,

I've exactly the same problem. When I try to use this sequence, it doesn't work :

Code: Select all




TCHAR* used_sequence = TEXT(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~áàâäéèêëìíîïñóòôöúùûü");

m_font2->CreateSurface(GDSURFACE_SYSTEMMEMORY, VFS_Surfaces, TEXT("/Polices/font1.png"));
m_font2->CreateFont(used_sequence, TRANSPARENTCOLOR1, GDCREATEFONT_SIMPLEBITMAP, NULL);
4 lines; 0 keywds; 0 nums; 22 ops; 2 strs; 0 coms    Syntactic Coloring v0.4 - Dan East  

For example, the "é" character is not displayed when I use it in a DrawText method. I tried to understand searching answers in previous topics but...

What am I doing wrong ?
norwy
pm Member
 
Posts: 39
Joined: Aug 13, 2004 @ 4:10pm
Location: Paris


Postby norwy » Jul 8, 2007 @ 3:52pm

I used CreateFont by using GDCREATEFONT_TRACKING (with spacing between characters): It works...
norwy
pm Member
 
Posts: 39
Joined: Aug 13, 2004 @ 4:10pm
Location: Paris


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

cron