Bug 565 : Can't display multi-byte characters
Last modified: 2007-06-01 15:38




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
mayfair
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2007-05-26 07:58
The following sample works fine with 0115, but won't display multi-byte
characters (e.g. Kanji characters) with 0124 (i.e. just draw "ABC"). The
font is a part of Mac OS X installation package.

Mac OS X 10.4.9
iBook G4 (512MB RAM, 30GB HDD)


PFont myFont;

void setup()
{
size(200,200);
myFont = loadFont("HiraKakuPro-W3-48.vlw");
}

void draw()
{
background(102);

translate(width/2, height/2);
fill(255);
textAlign(LEFT);
textFont(myFont, 48);
text("あいうABC", 50, 50);
}
Additional Comment #1 From fry 2007-06-01 15:38
you won't be able to display multi-byte characters unless you use "Create
Font" with "All Characters" selected. or the createFont() method with
'null' for the charset (which specifies all characters).