@@ -60,7 +60,7 @@ public function testFontColor(): void
6060 $ style ->setColor ($ style ::FGCOLOR_YELLOW );
6161 $ style ->setFgColor ($ style ::FGCOLOR_RED );
6262 $ style ->setBgColor ('#123456 ' );
63- $ expect = '\f0\fs48\ cf0\highlight0\cb0 ' ;
63+ $ expect = '\f0\cf0\fs48\ highlight0\chshdng0\chcbpat0 \cb0 ' ;
6464 self ::assertEquals ($ expect , $ this ->removeCr ($ writer ));
6565 }
6666
@@ -88,7 +88,7 @@ public function testFontColorRegistered(): void
8888 $ element ->setText ('Test ' );
8989 $ element ->setFontStyle ($ style );
9090
91- $ expect = '{\f1\fs48\ cf1\highlight2\cb3 Test} ' ;
91+ $ expect = '{\f1\cf1\fs48\ highlight2\chshdng0\chcbpat3 \cb3 Test} ' ;
9292 self ::assertEquals ($ expect , $ this ->removeCr ($ writer ));
9393 }
9494
@@ -110,7 +110,7 @@ public function testFontFormatting(): void
110110 $ style ->setItalic (true );
111111 $ style ->setNoProof (true );
112112 $ style ->setSubScript (true );
113- $ expect = '\b\i\striked1\sub\ caps\v\noproof\lang1024 ' ;
113+ $ expect = '\b\i\striked1\caps\v\sub \noproof\lang1024 ' ;
114114 self ::assertEquals ($ expect , $ this ->removeCr ($ writer ));
115115
116116 $ style ->setSmallCaps (true );
@@ -228,12 +228,12 @@ public function testFontLang(): void
228228
229229 $ style ->setRTL (true );
230230 $ style ->setLang (Language::KO_KR );
231- $ expect = '\rtlch\ lang1042 ' ;
231+ $ expect = '\lang1042\rtlch ' ;
232232 self ::assertEquals ($ expect , $ this ->removeCr ($ writer ));
233233
234234 $ style ->setRTL (false );
235235 $ style ->setLang (Language::EN_US );
236- $ expect = '\ltrch\ lang1033 ' ;
236+ $ expect = '\lang1033\ltrch ' ;
237237 self ::assertEquals ($ expect , $ this ->removeCr ($ writer ));
238238 }
239239
@@ -251,7 +251,7 @@ public function testFontSpacing(): void
251251 $ style ->setSpacing (4 );
252252 $ style ->setKerning (100 );
253253 $ style ->setPosition (10 );
254- $ expect = '\charscalex5\expnd4 \kerning200\up10 ' ;
254+ $ expect = '\charscalex5\expnd1\expndtw4 \kerning200\up10 ' ;
255255 self ::assertEquals ($ expect , $ this ->removeCr ($ writer ));
256256 }
257257}
0 commit comments