Skip to content

Commit 5e16b70

Browse files
committed
fixes
1 parent e96295d commit 5e16b70

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/changes/1.x/1.4.0.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
## Enhancements
66

77
- Default Font: Allow specify Asian font and Latin font separately
8-
-- in the datastructures in [#2714](https://github.com/PHPOffice/PHPWord/pull/2714)
9-
-- Writer Word2007 in [#2714](https://github.com/PHPOffice/PHPWord/pull/2714)
10-
-- Reader Word2007 in [#](https://github.com/PHPOffice/PHPWord/pull/)
11-
-- Writer ODText in [#](https://github.com/PHPOffice/PHPWord/pull/)
12-
-- Reader ODText in [#](https://github.com/PHPOffice/PHPWord/pull/)
8+
- in the datastructures in [#2714](https://github.com/PHPOffice/PHPWord/pull/2714)
9+
- Writer Word2007 in [#2714](https://github.com/PHPOffice/PHPWord/pull/2714)
10+
- Reader Word2007 in [#2750](https://github.com/PHPOffice/PHPWord/pull/2750)
11+
- Writer ODText in [#2750](https://github.com/PHPOffice/PHPWord/pull/2750)
12+
- Reader ODText in [#2750](https://github.com/PHPOffice/PHPWord/pull/2750)
1313

1414
- Writer ODText: Support for ListItemRun by [@Progi1984](https://github.com/Progi1984) fixing [#2159](https://github.com/PHPOffice/PHPWord/issues/2159), [#2620](https://github.com/PHPOffice/PHPWord/issues/2620) in [#2669](https://github.com/PHPOffice/PHPWord/pull/2669)
1515
- Writer HTML: Support for vAlign in Tables by [@SpraxDev](https://github.com/SpraxDev) in [#2675](https://github.com/PHPOffice/PHPWord/pull/2675)
@@ -23,7 +23,7 @@
2323
- Reader HTML: Support font styles for h1/h6 by [@Progi1984](https://github.com/Progi1984) fixing [#2619](https://github.com/PHPOffice/PHPWord/issues/2619) in [#2737](https://github.com/PHPOffice/PHPWord/pull/2737)
2424
- Writer EPub3: Basic support by [@Sambit003](https://github.com/Sambit003) fixing [#55](https://github.com/PHPOffice/PHPWord/issues/55) in [#2724](https://github.com/PHPOffice/PHPWord/pull/2724)
2525
- Writer2007: Added support for background and border color transparency in Text Box element [@chudy20007](https://github.com/Chudy20007) in [#2555](https://github.com/PHPOffice/PHPWord/pull/2555)
26-
- Reader ODText: addded (limited) support for reading default font styles by [@MichaelPFrey](https://github.com/MichaelPFrey) in [#(https://github.com/PHPOffice/PHPWord/pull/)
26+
- Reader ODText: addded (limited) support for reading default font styles by [@MichaelPFrey](https://github.com/MichaelPFrey) in [#(https://github.com/PHPOffice/PHPWord/pull/2750)
2727

2828
### Bug fixes
2929

src/PhpWord/Reader/ODText/Styles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function read(PhpWord $phpWord): void
4141
if ($fontDefaults !== null) {
4242
$phpWord->setDefaultFontName($fontDefaults->getAttribute('style:font-name'));
4343
$phpWord->setDefaultAsianFontName($fontDefaults->getAttribute('style:font-name-asian'));
44-
$phpWord->setDefaultFontSize((float) (str_replace('pt', '', $fontDefaults->getAttribute('fo:font-size'))));
44+
$phpWord->setDefaultFontSize((int) (str_replace('pt', '', $fontDefaults->getAttribute('fo:font-size'))));
4545
$phpWord->setDefaultFontColor(str_replace('#', '', $fontDefaults->getAttribute('fo:color')));
4646
$phpWord->getSettings()->setThemeFontLang(new Language($fontDefaults->getAttribute('fo:language')));
4747
}

0 commit comments

Comments
 (0)