Skip to content

Calling textSize() breaks katakana rendering #4956

@KevinWorkman

Description

@KevinWorkman

From this Stack Overflow question, here's an example sketch that shows the problem:

background(0);
char c = (char)(0x30A0 + random(96));
text(c, 20, 20);
textSize(12);
text(c, 50, 50);

bad katakana rendering

The first call to text() works as expected and draws a katakana character. But the second call draws the white square that usually means the font doesn't support the character. But that doesn't make sense, since the first call draws the character just fine.

It doesn't seem to matter what value is passed into the textSize() function. Even passing the default value of 12 seems to break. If the textSize() call is removed, the program works as expected and draws the character twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions