Expected Results
AlphaTex should render multi-bytes characters (such as CJK languages) in lyrics
Observed Results
CJK characters do not show in lyrics.
Steps to Reproduce
Link to jsFiddle, CodePen, Project etc.:
In lyrics, put some CJK chars (chars that have more than 1 byte).
- https://alphatex-multi-bytes-char.glitch.me/
Further details
I think the problem might live here:
|
private nextChar(): number { |
|
let b: number = this.data.readByte(); |
|
if (b === -1) { |
|
this._ch = 0; |
|
} else { |
|
this._ch = b; |
|
this._curChPos++; |
|
} |
|
return this._ch; |
|
} |
Your environment
Version
Flavor
System
Expected Results
AlphaTex should render multi-bytes characters (such as CJK languages) in lyrics
Observed Results
CJK characters do not show in lyrics.
Steps to Reproduce
Link to jsFiddle, CodePen, Project etc.:
In lyrics, put some CJK chars (chars that have more than 1 byte).
Further details
I think the problem might live here:
alphaTab/src/importer/AlphaTexImporter.ts
Lines 364 to 373 in bae294d
Your environment
Version
Flavor
System