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

Use relative font metrics and allow setting font size #52

Open
jkrumbiegel opened this issue Nov 19, 2024 · 0 comments
Open

Use relative font metrics and allow setting font size #52

jkrumbiegel opened this issue Nov 19, 2024 · 0 comments

Comments

@jkrumbiegel
Copy link
Collaborator

jkrumbiegel commented Nov 19, 2024

I haven't done this so far because docx doesn't have relative metrics (that's why there is indent_pt even though it's not great to hardcode that value). But after thinking some more about it, the solution is to use relative metrics everywhere and simply feed the absolute fontsize for docx in with to_docx(table; base_fontsize_pt = 12). Currently, tables in html look pretty bad when the base document changes fontsize from about 10 to 12 pt to something larger, like in a revealjs presentation.

This would also allow to choose larger fonts in some places, for a title, for example.

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

No branches or pull requests

1 participant