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

feature: Font.spacing #269

Closed
crazylyf opened this issue Feb 26, 2016 · 7 comments
Closed

feature: Font.spacing #269

crazylyf opened this issue Feb 26, 2016 · 7 comments
Labels

Comments

@crazylyf
Copy link

Is there any way to adjust the inter-character space (kerning)? It can be adjusted in my office2010, while in python-docx, I could not find the way to change it.
Thanks in advance!

@scanny
Copy link
Contributor

scanny commented Feb 29, 2016

This is not yet implemented. I'll leave this issue open as a feature request.

@scanny
Copy link
Contributor

scanny commented Feb 29, 2016

There are two properties I can find related to this. One is Font.Kerning, which takes a point value below which text is not kerned. The other is Font.Spacing, which adds (or subtracts) a certain amount of space between characters.

Which did you have in mind?

@crazylyf
Copy link
Author

crazylyf commented Mar 1, 2016

Thanks for your reply~

I tried a indirect way to solve this problem, by adding a space where needed, and tuning the font size of space to adjust the spacing.

As for the two proposed properties, I prefer the first strategy, as it offers control the size of spacing.

@crazylyf
Copy link
Author

crazylyf commented Mar 1, 2016

Hi, scanny
I have another question. When I tried to set a certain font using Font.name for text in paragraph, and found that it works well for English, but failed for Chinese. Does Font.name method support Chinese in current version?

@scanny
Copy link
Contributor

scanny commented Mar 1, 2016

No, not yet, but you might find the thread on this issue helpful: #154

@crazylyf
Copy link
Author

crazylyf commented Mar 2, 2016

Great! Thanks~

@scanny scanny changed the title How to adjust the inter-character space? feature: Font.spacing Apr 22, 2016
@scanny scanny added the text label Apr 22, 2016
@scanny
Copy link
Contributor

scanny commented Apr 22, 2016

Issue #243 is feature request for Font.spacing.

@scanny scanny closed this as completed Apr 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants