#95 Fixed font style generation
This commit is contained in:
parent
086cb16b3c
commit
fa1bfc0436
1 changed files with 2 additions and 2 deletions
|
@ -114,10 +114,10 @@ class element_helper {
|
|||
list($font, $attr) = self::get_font($element);
|
||||
$fontstyle = 'font-family: ' . $font;
|
||||
if (strpos($attr, 'B') !== false) {
|
||||
$fontstyle .= ': font-weight: bold';
|
||||
$fontstyle .= '; font-weight: bold';
|
||||
}
|
||||
if (strpos($attr, 'I') !== false) {
|
||||
$fontstyle .= ': font-style: italic';
|
||||
$fontstyle .= '; font-style: italic';
|
||||
}
|
||||
|
||||
$style = $fontstyle . '; color: ' . $element->colour . '; font-size: ' . $element->size . 'pt;';
|
||||
|
|
Loading…
Reference in a new issue