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

Addition of sub/superscript properties to Font #601

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kckaiwei
Copy link

@kckaiwei kckaiwei commented Mar 8, 2020

Adding docs, Font properties and tests for subscript and superscript.

Subscript and superscript are defined by the baseline property. A value of 30000 denotes superscript, and a value of -25000 denotes subscript.

I had the need for this feature in one of my projects, and figured others would find it useful.

Typically used in a run in a paragraph, in the example text below:

This is the 4th paragraph.

This is the 4 would be one run in the paragraph. th would be another run, which would have superscript = True and paragraph. would be the last run.

@MaharshiYeluri01
Copy link

I am trying to use superscript attribute, can you help me with the code

@kckaiwei
Copy link
Author

You have a code snippet of what you're trying to do?

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.

None yet

2 participants