Skip to content

Commit 121b92b

Browse files
committed
Fix color missing quotes (mandatory for "rgba()"-like colors)
1 parent 785c533 commit 121b92b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public function size($geometry): self
386386
*/
387387
public function xc(string $canvasColor = 'none'): self
388388
{
389-
$this->command[] = 'xc:'.$this->ref->color($canvasColor);
389+
$this->command[] = '"xc:'.$this->ref->color($canvasColor).'"';
390390

391391
return $this;
392392
}
@@ -523,7 +523,7 @@ public function pointsize(int $pointsize): self
523523
public function stroke(string $color): self
524524
{
525525
$this->command[] = '-stroke';
526-
$this->command[] = $this->ref->color($color);
526+
$this->command[] = '"'.$this->ref->color($color).'"';
527527

528528
return $this;
529529
}

0 commit comments

Comments
 (0)