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

Support for cluster splitting in multiple spans #10

Closed
mta452 opened this issue Jul 13, 2018 · 2 comments
Closed

Support for cluster splitting in multiple spans #10

mta452 opened this issue Jul 13, 2018 · 2 comments

Comments

@mta452
Copy link
Member

mta452 commented Jul 13, 2018

This issue is a continuation of discussion in #1

Consider three characters form a ligature, but its individual characters have different color spans. The typesetter does not break runs based on color spans, but whole ligature is rendered in a single color, which is a deviation from intended behavior. The same thing happens if multiple characters form a cluster, such as marks followed by a base.

As characters are not recognizable in a ligature/cluster, they can be estimated by dividing the total advance of the cluster with the number of characters in it. Then, the whole cluster should be rendered in defined edges with clipping mode.

The end result should be similar to the following image, where the estimated portion of س and ت is rendered in red color.

@mta452
Copy link
Member Author

mta452 commented Aug 21, 2018

Resolved in v2.2

@mta452 mta452 closed this as completed Aug 21, 2018
@mta452
Copy link
Member Author

mta452 commented Aug 21, 2018

@AbdullahRusi you may check the feature in v2.2.

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

No branches or pull requests

1 participant