Skip to content

AlphaTex not supporting multi-bytes characters in lyrics #579

@lannka

Description

@lannka

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

  1. 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

  • 1.0
  • 1.1
  • 1.2
  • 1.3-alpha.##

Flavor

  • JavaScript
  • .net

System

Metadata

Metadata

Assignees

Labels

area-file-formatsRelated to supported file formatsstate-acceptedThis is a valid topic to work on.

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions