@@ 2061-2064 (lines=4) @@ | ||
2058 | if (isset($run->rPr->color)) { |
|
2059 | $objText->getFont()->setColor(new Style\Color(self::readColor($run->rPr->color))); |
|
2060 | } |
|
2061 | if ((isset($run->rPr->b['val']) && self::boolean((string) $run->rPr->b['val'])) || |
|
2062 | (isset($run->rPr->b) && !isset($run->rPr->b['val']))) { |
|
2063 | $objText->getFont()->setBold(true); |
|
2064 | } |
|
2065 | if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) || |
|
2066 | (isset($run->rPr->i) && !isset($run->rPr->i['val']))) { |
|
2067 | $objText->getFont()->setItalic(true); |
|
@@ 2065-2068 (lines=4) @@ | ||
2062 | (isset($run->rPr->b) && !isset($run->rPr->b['val']))) { |
|
2063 | $objText->getFont()->setBold(true); |
|
2064 | } |
|
2065 | if ((isset($run->rPr->i['val']) && self::boolean((string) $run->rPr->i['val'])) || |
|
2066 | (isset($run->rPr->i) && !isset($run->rPr->i['val']))) { |
|
2067 | $objText->getFont()->setItalic(true); |
|
2068 | } |
|
2069 | if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign['val'])) { |
|
2070 | $vertAlign = strtolower((string) $run->rPr->vertAlign['val']); |
|
2071 | if ($vertAlign == 'superscript') { |
|
@@ 2083-2086 (lines=4) @@ | ||
2080 | } elseif (isset($run->rPr->u) && isset($run->rPr->u['val'])) { |
|
2081 | $objText->getFont()->setUnderline((string) $run->rPr->u['val']); |
|
2082 | } |
|
2083 | if ((isset($run->rPr->strike['val']) && self::boolean((string) $run->rPr->strike['val'])) || |
|
2084 | (isset($run->rPr->strike) && !isset($run->rPr->strike['val']))) { |
|
2085 | $objText->getFont()->setStrikethrough(true); |
|
2086 | } |
|
2087 | } |
|
2088 | } |
|
2089 | } |