@@ 1785-1793 (lines=9) @@ | ||
1782 | $docStyle->getFont()->setUnderline((string)$style->font->u["val"]); |
|
1783 | } |
|
1784 | ||
1785 | if (isset($style->font->vertAlign) && isset($style->font->vertAlign["val"])) { |
|
1786 | $vertAlign = strtolower((string)$style->font->vertAlign["val"]); |
|
1787 | if ($vertAlign == 'superscript') { |
|
1788 | $docStyle->getFont()->setSuperScript(true); |
|
1789 | } |
|
1790 | if ($vertAlign == 'subscript') { |
|
1791 | $docStyle->getFont()->setSubScript(true); |
|
1792 | } |
|
1793 | } |
|
1794 | } |
|
1795 | ||
1796 | // fill |
|
@@ 1931-1939 (lines=9) @@ | ||
1928 | $objText->getFont()->setItalic(true); |
|
1929 | } |
|
1930 | ||
1931 | if (isset($run->rPr->vertAlign) && isset($run->rPr->vertAlign["val"])) { |
|
1932 | $vertAlign = strtolower((string)$run->rPr->vertAlign["val"]); |
|
1933 | if ($vertAlign == 'superscript') { |
|
1934 | $objText->getFont()->setSuperScript(true); |
|
1935 | } |
|
1936 | if ($vertAlign == 'subscript') { |
|
1937 | $objText->getFont()->setSubScript(true); |
|
1938 | } |
|
1939 | } |
|
1940 | ||
1941 | if (isset($run->rPr->u) && !isset($run->rPr->u["val"])) { |
|
1942 | $objText->getFont()->setUnderline(PHPExcel_Style_Font::UNDERLINE_SINGLE); |