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

Baseline management missing from CPText #2981

Open
enquora opened this issue Apr 26, 2021 · 4 comments
Open

Baseline management missing from CPText #2981

enquora opened this issue Apr 26, 2021 · 4 comments

Comments

@enquora
Copy link
Contributor

enquora commented Apr 26, 2021

Although the constants CPBaselineOffsetAttributeName and CPSuperscriptAttributeName are both defined, it is not currently possible to implement baseline offsets.
This is necessary for both super/subscripts and aligning multiple columns of text, possibly in different fonts or sizes.

It is possible to use unicode characters for super and subscripting numbers but this may compromise searching for strings using the standard numbers rather than their super/subscript equivalents. It is also dependent on fonts implementing the full unicode character set (although this seems now to be a less frequent problem).

What is not possible using unicode is super/subscripting characters (e.g. 3rd).
This change probably falls into the important-not-urgent class - something for the next major release.

@cappbot cappbot added this to the Someday milestone Apr 26, 2021
@cappbot cappbot added the #new label Apr 26, 2021
@cappbot
Copy link

cappbot commented Apr 26, 2021

Milestone: Someday. Label: #new. What's next? A reviewer should examine this issue.

@daboe01
Copy link
Contributor

daboe01 commented Apr 28, 2021

-#new
+TextView
+#accepted
+#needs-patch

@cappbot
Copy link

cappbot commented Apr 28, 2021

Milestone: Someday. Labels: #accepted, #needs-patch, TextView. What's next? This issue needs a volunteer to write and submit code to address it.

@daboe01
Copy link
Contributor

daboe01 commented Apr 28, 2021

a starting point is here: #2883

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

3 participants