Skip to content

Commit

Permalink
Add support for fractional font sizes (PHPOffice#2363)
Browse files Browse the repository at this point in the history
* Add support for fractional font sizes

Word supports fractional font sizes like 8.5pt, but PHPWord doesn't.

* Add background color support for textboxes

* Add background color support for text boxes for Word writer

* Added period to the comments to match the cs-fixer configuration

* Fixed cs-fixer issues.

* Added type hints and matching PHPDoc. Also added @return void.

* Added bgcolor unit test coverage

* Removed @return void as not compatible with projects coding standard.

* Fixed several CS-Fixer issues

* Replaced deprecated "assertRegExp" test method by assertMatchesRegularExpression.

* Address the CI coverage issue for the regex match assertion.

* Add support for fractional font sizes

Word supports fractional font sizes like 8.5pt, but PHPWord doesn't.

* The default font size method now supports int and float font sizes. Added type hinting to settings class and unit test coverage for fractional (float) font size.

* The default font size method now supports int and float font sizes. Added type hinting to settings class and unit test coverage for fractional (float) font size.

Co-authored-by: hazington <[email protected]>
Co-authored-by: Progi1984 <[email protected]>
  • Loading branch information
3 people authored Jan 6, 2023
1 parent ef99fac commit aac3a60
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 117 deletions.
Loading

0 comments on commit aac3a60

Please sign in to comment.