-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat(fabric.Text): Initial support of RTL text writing #7046
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code Coverage Summary
|
Code Coverage Summary
|
Some JSON example to start handling colored text. {"version":"4.4.0","objects":[{"type":"i-text","version":"4.4.0","left":233,"top":250,"width":740.57,"height":150.06,"fill":"#e38644","scaleX":0.59,"scaleY":0.59,"angle":-2,"text":"השועל החום והזריז קופץ מעל הכלב העצלן\nהשועל החום והזריז קופץ מעל הכל העצלן\nשלום עולם","fontWeight":"","fontFamily":"helvetica","textAlign":"right","direction":"rtl","styles":{ "0":
{ "6": { "fill":"red" }, "7": { "fill":"red" }, "8": { "fill":"red" }, "9": { "fill":"red" }} },"path":null},{"type":"i-text","version":"4.4.0","left":230,"top":120,"width":493.52,"height":150.06,"fill":"#c93d60","scaleX":0.71,"scaleY":0.71,"angle":-3,"text":"Lorem ipsum dolor sit amet,\nconsectetur adipisicing elit,\nsed do eiusmod","fontWeight":"","fontFamily":"helvetica","textAlign":"right","direction":"ltr","styles":{},"path":null}]} |
Code Coverage Summary
|
copy paste seems to work ok and respond in a way, from my european point of view, seems correct. |
example for text Decoration:
|
Code Coverage Summary
|
Text background color works |
Code Coverage Summary
|
Code Coverage Summary
|
Code Coverage Summary
|
This implementation does not work under node. |
Code Coverage Summary
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Basically this PR allow for a bit better experience in RTL text but not complete at all.
Inputing for example Hebrew text on a iText that is set as RTL will work as expect.