-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Allow disabling ligatures in Text #804
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
Conversation
PgBiel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
worst typo Co-authored-by: Pg Biel <[email protected]>
|
After a provisional skimming, this looks good in general. I have to take a closer look. Could you please add a couple of tests? |
|
This looks good to me, I also seem to be able to use a monospace font without problems: Testing I'm on the fence whether we should use the current implementation using |
|
I will only see a simple problem with this. This will not allow passing something like Arabic, or Hindi or some font which heavily depends on ligatures, from within the code and will look worse. This could be a fix for a short time but this definitely needs to be refactored so that Pango takes the responsibility of colouring it (which it does) instead of manipulating the arrays. But this can't be done for now as our SVG parser ignore style element without which it is not possible. One way it can be fixed is to make it not inherit from SVGMobject instead inherit directly from |
This is why I'm fine with using this fix for CodeMobject, but not for Text itself. I agree this should only be a temporary fix. Point taken on the tests. Given the absence of tests, I vote we merge this right after the release. |
|
Ready for review. |
|
@naveen521kk could you please solve the merge conflict? 🙂 |
|
I didn't expect this lol. Will do no worries 😊 |
|
@leotrs done. Also, typed(python typing) a few things. |
PgBiel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice job
Co-authored-by: Pg Biel <[email protected]>

List of Changes
Codewith it.Explanation for Changes
Better than using CairoText.
Testing Status
Acknowledgement