feisishui / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

Error whe trying to display non ascii char such as French caracteres #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a file with French accents in it
2. Load the content of the file in a variable
3. Try to display the variable:
this.twitterMaterial = new Letter3DMaterial(0x000000,1);
            this.twitterMaterial.interactive = true;
            this.twitterMaterial.doubleSided = true;
            this.twitterText3d = new Text3D(this.twitter_post, new HelveticaLight(),
this.twitterMaterial);

What is the expected output? What do you see instead?
Expected: nice text displaying properly
Instead: nice error about a null pointer exception in VectorLetter3d.as

What version of the product are you using? On what operating system?
Latest SVN version on MacOs X

Please provide any additional information below.
You can solve the problem by adding

Line 40: if (_font.motifs.hasOwnProperty(_char)) {
Line 42: }
File: VectorLetter3d.as

Original issue reported on code.google.com by metba...@gmail.com on 7 Sep 2009 at 2:05