Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correction of oversights in Unicode support for Typewriter.

  • Loading branch information...
commit 48600b9706e2be00aedc6f88fc155cce1497c514 1 parent a7c4d07
@skyboy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 skyboy/text/Typewriter.as
View
4 skyboy/text/Typewriter.as
@@ -139,11 +139,11 @@ package skyboy.text {
var i:uint = buffer[pos++], a:int = i >>> 4;
if (!(a & 8))
return i & 0x7F;
- if ((a & 14) === 3)
+ if ((a & 14) === 12)
return ((i & 31) << 6) | ((buffer[pos++] & 0x3F));
if (a === 14)
return ((i & 15) << 12) | ((buffer[pos++] & 0x3F) << 6) | ((buffer[pos++] & 0x3F));
- if (a === 15)
+ if (a === 15) if (i & 15 < 8)
return ((i & 7) << 18) | ((buffer[pos++] & 0x3F) << 12) | ((buffer[pos++] & 0x3F) << 6) | (buffer[pos++] & 0x3F);
return 0x3F;
}
Please sign in to comment.
Something went wrong with that request. Please try again.