#95 Fixed font style generation

This commit is contained in:
ovidiumorariu 2017-03-15 16:20:23 +02:00 committed by Mark Nelson
parent 086cb16b3c
commit fa1bfc0436

View file

@ -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;';