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

Implement set_text_utf16. #165

Merged
merged 3 commits into from
Apr 22, 2022
Merged

Implement set_text_utf16. #165

merged 3 commits into from
Apr 22, 2022

Conversation

therahedwig
Copy link
Contributor

Hi,

I'm rewriting the svg text layout for Krita, using libraqm as a base. I've gotten pretty far with it, however there's a number of smaller things that make more sense to implement in raqm itself.

The first of these is that our toolkit, Qt, uses utf16 for the strings by default, and while I can convert the strings to utf8 or utf32, keeping track of the string length and which encoding it's in is a bit of a drag, especially as raqm is already doing that for utf8. So I implemented utf16 functions in addition to the utf8 ones.

I had a bit of trouble deciding on how to tackle the tests. Right now, it seems the tests are always testing utf8? Any idea on how to approach this?

@therahedwig therahedwig mentioned this pull request Apr 20, 2022
Copy link
Collaborator

@khaledhosny khaledhosny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have some test covering this, but we don’t currently have any unit tests (only integration tests), so I won’t block merging on it.

docs/raqm-docs.xml Outdated Show resolved Hide resolved
@khaledhosny khaledhosny merged commit 32bd808 into HOST-Oman:master Apr 22, 2022
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

Successfully merging this pull request may close these issues.

2 participants