Closed rznewswav closed 1 year ago
I was loading a font, but I cannot share it here. However, upon debugging, I found out that languageToString will return utf-8, and the loop will fail because of the s+1 expression.
languageToString
utf-8
s+1
https://github.com/benoitkugler/textlayout/blob/9459f671349eb2b463ea5dcfc8739e793b07a323/harfbuzz/ot_tag.go#L309-L317
ok found solution to define environment variable LC_ALL to en_US.UTF-8 instead
LC_ALL
en_US.UTF-8
See also https://github.com/go-text/typesetting/issues/64
I was loading a font, but I cannot share it here. However, upon debugging, I found out that
languageToString
will returnutf-8
, and the loop will fail because of thes+1
expression.https://github.com/benoitkugler/textlayout/blob/9459f671349eb2b463ea5dcfc8739e793b07a323/harfbuzz/ot_tag.go#L309-L317