@@ 1956-1964 (lines=9) @@ | ||
1953 | $docStyle->getFont()->setUnderline((string)$style->font->u["val"]); |
|
1954 | } |
|
1955 | ||
1956 | if (isset($style->font->vertAlign) && isset($style->font->vertAlign["val"])) { |
|
1957 | $vertAlign = strtolower((string)$style->font->vertAlign["val"]); |
|
1958 | if ($vertAlign == 'superscript') { |
|
1959 | $docStyle->getFont()->setSuperScript(true); |
|
1960 | } |
|
1961 | if ($vertAlign == 'subscript') { |
|
1962 | $docStyle->getFont()->setSubScript(true); |
|
1963 | } |
|
1964 | } |
|
1965 | } |
|
1966 | ||
1967 | // fill |
|
@@ 2097-2105 (lines=9) @@ | ||
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') { |
|
2100 | $objText->getFont()->setSuperScript(true); |
|
2101 | } |
|
2102 | if ($vertAlign == 'subscript') { |
|
2103 | $objText->getFont()->setSubScript(true); |
|
2104 | } |
|
2105 | } |
|
2106 | if (isset($run->rPr->u) && !isset($run->rPr->u["val"])) { |
|
2107 | $objText->getFont()->setUnderline(\PhpSpreadsheet\Style\Font::UNDERLINE_SINGLE); |
|
2108 | } elseif (isset($run->rPr->u) && isset($run->rPr->u["val"])) { |