@@ 2089-2092 (lines=4) @@ | ||
2086 | if (isset($run->rPr->color)) { |
|
2087 | $objText->getFont()->setColor(new \PhpSpreadsheet\Style\Color(self::readColor($run->rPr->color))); |
|
2088 | } |
|
2089 | if ((isset($run->rPr->b["val"]) && self::boolean((string) $run->rPr->b["val"])) || |
|
2090 | (isset($run->rPr->b) && !isset($run->rPr->b["val"]))) { |
|
2091 | $objText->getFont()->setBold(true); |
|
2092 | } |
|
2093 | if ((isset($run->rPr->i["val"]) && self::boolean((string) $run->rPr->i["val"])) || |
|
2094 | (isset($run->rPr->i) && !isset($run->rPr->i["val"]))) { |
|
2095 | $objText->getFont()->setItalic(true); |
|
@@ 2093-2096 (lines=4) @@ | ||
2090 | (isset($run->rPr->b) && !isset($run->rPr->b["val"]))) { |
|
2091 | $objText->getFont()->setBold(true); |
|
2092 | } |
|
2093 | if ((isset($run->rPr->i["val"]) && self::boolean((string) $run->rPr->i["val"])) || |
|
2094 | (isset($run->rPr->i) && !isset($run->rPr->i["val"]))) { |
|
2095 | $objText->getFont()->setItalic(true); |
|
2096 | } |
|
2097 | if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign["val"])) { |
|
2098 | $vertAlign = strtolower((string)$run->rPr->vertAlign["val"]); |
|
2099 | if ($vertAlign == 'superscript') { |
|
@@ 2111-2114 (lines=4) @@ | ||
2108 | } elseif (isset($run->rPr->u) && isset($run->rPr->u["val"])) { |
|
2109 | $objText->getFont()->setUnderline((string)$run->rPr->u["val"]); |
|
2110 | } |
|
2111 | if ((isset($run->rPr->strike["val"]) && self::boolean((string) $run->rPr->strike["val"])) || |
|
2112 | (isset($run->rPr->strike) && !isset($run->rPr->strike["val"]))) { |
|
2113 | $objText->getFont()->setStrikethrough(true); |
|
2114 | } |
|
2115 | } |
|
2116 | } |
|
2117 | } |