Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese characters are not supported to display garbled #4

Open
HerryJessica opened this issue Oct 31, 2022 · 0 comments
Open

Chinese characters are not supported to display garbled #4

HerryJessica opened this issue Oct 31, 2022 · 0 comments

Comments

@HerryJessica
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant