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