Skip to content

Commit d4a598f

Browse files
authored
Merge pull request #101 from alessandrobelli/master
rtf formatter crash on "exotic" fonts
2 parents 7497796 + e604d56 commit d4a598f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Html/State.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function PrintStyle()
7575
// if($this->state->end_underline) {$span .= "text-decoration:none;";}
7676
if($this->strike) $style .= "text-decoration:line-through;";
7777
if($this->hidden) $style .= "display:none;";
78-
if(isset($this->font)) {
78+
if(isset($this->font) && count( self::$fonttbl)>0) {
7979
$font = self::$fonttbl[$this->font];
8080
$style .= $font->toStyle();
8181
}
@@ -125,4 +125,4 @@ public function equals($state)
125125

126126
return true;
127127
}
128-
}
128+
}

0 commit comments

Comments
 (0)