Skip to content

Chinese characters are not supported to display garbled  #4

@HerryJessica

Description

@HerryJessica

Chinese characters are not supported when i tried run samples bl_qt_text ;

BLFont font;
font.createFromFace(_face, _slider->value());
ctx.setFillStyle(BLRgba32(0xFF000000));
ctx.fillAll();
QString text = _text->text();
ctx.setFillStyle(BLRgba32(0xFFFFFFFF));
ctx.fillUtf16Text(BLPoint(10, 10 + font.size()), font, reinterpret_cast<const uint16_t*>(text.constData()), text.length());

The result is like this
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions