File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ protected function getStyleNames(): array
3232 return array_keys (array_filter ($ this ->getStyles ()));
3333 }
3434
35- public static function createFromFontOptions (TkFontOptions $ fontOptions ): static
35+ public static function createFromFontOptions (TkFontOptions $ fontOptions ): self
3636 {
3737 $ font = new static ($ fontOptions ->family , (int ) $ fontOptions ->size );
3838 $ font ->setBold ($ fontOptions ->weight === 'bold ' )
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function getFixedFont(): Font
5454 protected function createFontFromTclEvalResult (string $ name ): TkFont
5555 {
5656 $ this ->interp ->eval ("font actual $ name " );
57- $ fontOptions = new TkFontOptions ($ this ->interp ->getListResult ());
57+ $ fontOptions = TkFontOptions:: createFromList ($ this ->interp ->getListResult ());
5858 return TkFont::createFromFontOptions ($ fontOptions );
5959 }
6060
You can’t perform that action at this time.
0 commit comments