|
|
@ -61,7 +61,7 @@ class PDFConvertor extends AbstractConvertor |
|
|
|
|
|
|
|
foreach ($page as $p) { |
|
|
|
if ($p->getName() === 'fontspec') { |
|
|
|
$fonts[(int) $p['id']]['family'] = (string) $p['family']; |
|
|
|
$fonts[(int) $p['id']]['family'] = (string) substr($p['family'], strpos($p['family'], '+') + 1); |
|
|
|
$fonts[(int) $p['id']]['size'] = (string) $p['size']; |
|
|
|
$fonts[(int) $p['id']]['color'] = (string) $p['color']; |
|
|
|
} |
|
|
@ -214,7 +214,7 @@ class PDFConvertor extends AbstractConvertor |
|
|
|
$style = $style . "height: " . $p['height'] . "px;"; |
|
|
|
if($firstOfText) |
|
|
|
$style = $style . "padding-left: " . (intval($p['left']) - 90) . "px;"; |
|
|
|
// $style = $style . "font-size: $font_size" . "px;";
|
|
|
|
$style = $style . "font-size: $font_size" . "px;"; |
|
|
|
|
|
|
|
if ($p->i) { |
|
|
|
$content = '<i>' . $p->i . '</i>'; |
|
|
|