PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Support for french or other accented characters

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
You are responsible for creating CGapiBitmapFont so it is up to you which characters get included and which are not.
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: It should work on ASCII character codes up to 255. Please report back if it doesn't.
Hi,

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

Code:

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);

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 ?
I used CreateFont by using GDCREATEFONT_TRACKING (with spacing between characters): It works...