-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add support for fractional font sizes #2363
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
Conversation
Word supports fractional font sizes like 8.5pt, but PHPWord doesn't.
Add background color support for text box element for Word writer
Word supports fractional font sizes like 8.5pt, but PHPWord doesn't.
…dded type hinting to settings class and unit test coverage for fractional (float) font size.
# Conflicts: # src/PhpWord/Settings.php
…dded type hinting to settings class and unit test coverage for fractional (float) font size.
I've added type hinting to the settings class and improved the set default font size method. It now supports both, int and float font sizes. I've also updated the unit tests to cover the new supported fractional font sizes. For an unknown reason the rebase command also added the new textbox code of my other patch that has already been merged to the master branch. P.S. The docs do not mention that only integer font sizes are supported. So there is no place to edit the docs. |
Description
Word supports fractional font sizes like 8.5pt, but PHPWord doesn't.
Fixes # (issue)
That fractional font size ist not supported as default font size, while font style elements support fractional font size.
Checklist:
composer run-script check --timeout=0
and no errors were reported