kaplay icon indicating copy to clipboard operation
kaplay copied to clipboard

bug: The clipping box for the text() is too small for some letters in languages such as Vietnamese

Open huyng opened this issue 9 months ago • 0 comments

Describe the bug

In some languages such as Vietnamese, there are diacritic & tone marks for a subset of characters. For example: "Ấ" . When displaying these characters using the text() component, the accents at the top of the character is clipped off. See the example image below:

Image

this was produced with the following code:

 add([
      text("Â"),
      pos(40, 40),
      color(0, 0, 0),
  ]);

I am running v3001

Expected behavior

The clipping box should be expandable / customizable to accommodate non-english text.

huyng avatar Mar 04 '25 20:03 huyng