Skip to content

Commit 20267fc

Browse files
committed
Fix Word2007 Font -> Underline
For some reason, Font was using the DocumentFormat.OpenXml.Drawing TextUnderlineValues rather than the DocumentFormat.OpenXml.Wordprocessing UnderlineValues which are different in some cases for reasons? This fixes underline types in Word2007/OOXML Compare https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.underlinevalues?view=openxml-3.0.1 with https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.drawing.textunderlinevalues?view=openxml-3.0.1
1 parent 0ab0b49 commit 20267fc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/PhpWord/Style/Font.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ class Font extends AbstractStyle
3333
*/
3434
const UNDERLINE_NONE = 'none';
3535
const UNDERLINE_DASH = 'dash';
36-
const UNDERLINE_DASHHEAVY = 'dashHeavy';
36+
const UNDERLINE_DASHHEAVY = 'dashedHeavy';
3737
const UNDERLINE_DASHLONG = 'dashLong';
3838
const UNDERLINE_DASHLONGHEAVY = 'dashLongHeavy';
39-
const UNDERLINE_DOUBLE = 'dbl';
39+
const UNDERLINE_DOUBLE = 'double';
4040
const UNDERLINE_DOTDASH = 'dotDash';
41-
const UNDERLINE_DOTDASHHEAVY = 'dotDashHeavy';
41+
const UNDERLINE_DOTDASHHEAVY = 'dashDotHeavy';
4242
const UNDERLINE_DOTDOTDASH = 'dotDotDash';
43-
const UNDERLINE_DOTDOTDASHHEAVY = 'dotDotDashHeavy';
43+
const UNDERLINE_DOTDOTDASHHEAVY = 'dashDotDotHeavy';
4444
const UNDERLINE_DOTTED = 'dotted';
4545
const UNDERLINE_DOTTEDHEAVY = 'dottedHeavy';
46-
const UNDERLINE_HEAVY = 'heavy';
46+
const UNDERLINE_HEAVY = 'thick';
4747
const UNDERLINE_SINGLE = 'single';
48-
const UNDERLINE_WAVY = 'wavy';
49-
const UNDERLINE_WAVYDOUBLE = 'wavyDbl';
48+
const UNDERLINE_WAVY = 'wave';
49+
const UNDERLINE_WAVYDOUBLE = 'wavyDouble';
5050
const UNDERLINE_WAVYHEAVY = 'wavyHeavy';
5151
const UNDERLINE_WORDS = 'words';
5252

0 commit comments

Comments
 (0)