@@ 2078-2081 (lines=4) @@ | ||
2075 | if (isset($run->rPr->color)) { |
|
2076 | $objText->getFont()->setColor(new Style\Color(self::readColor($run->rPr->color))); |
|
2077 | } |
|
2078 | if ((isset($run->rPr->b['val']) && self::boolean((string) $run->rPr->b['val'])) || |
|
2079 | (isset($run->rPr->b) && !isset($run->rPr->b['val']))) { |
|
2080 | $objText->getFont()->setBold(true); |
|
2081 | } |
|
2082 | if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) || |
|
2083 | (isset($run->rPr->i) && !isset($run->rPr->i['val']))) { |
|
2084 | $objText->getFont()->setItalic(true); |
|
@@ 2082-2085 (lines=4) @@ | ||
2079 | (isset($run->rPr->b) && !isset($run->rPr->b['val']))) { |
|
2080 | $objText->getFont()->setBold(true); |
|
2081 | } |
|
2082 | if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) || |
|
2083 | (isset($run->rPr->i) && !isset($run->rPr->i['val']))) { |
|
2084 | $objText->getFont()->setItalic(true); |
|
2085 | } |
|
2086 | if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign['val'])) { |
|
2087 | $vertAlign = strtolower((string) $run->rPr->vertAlign['val']); |
|
2088 | if ($vertAlign == 'superscript') { |
|
@@ 2100-2103 (lines=4) @@ | ||
2097 | } elseif (isset($run->rPr->u) && isset($run->rPr->u['val'])) { |
|
2098 | $objText->getFont()->setUnderline((string) $run->rPr->u['val']); |
|
2099 | } |
|
2100 | if ((isset($run->rPr->strike['val']) && self::boolean((string) $run->rPr->strike['val'])) || |
|
2101 | (isset($run->rPr->strike) && !isset($run->rPr->strike['val']))) { |
|
2102 | $objText->getFont()->setStrikethrough(true); |
|
2103 | } |
|
2104 | } |
|
2105 | } |
|
2106 | } |