(final byte fontSizeIndex)
| 1844 | } |
| 1845 | |
| 1846 | public final void setFontSize(final byte fontSizeIndex) { |
| 1847 | |
| 1848 | if (fontSizes.length > 1) { |
| 1849 | if (currentFontSizeIndex > fontSizeIndex) { |
| 1850 | fontGrowing = false; |
| 1851 | } else if (currentFontSizeIndex < fontSizeIndex) { |
| 1852 | fontGrowing = true; |
| 1853 | } |
| 1854 | |
| 1855 | currentFontSizeIndex = fontSizeIndex; |
| 1856 | |
| 1857 | loadFont(); |
| 1858 | |
| 1859 | /* |
| 1860 | * Reflow the chapter |
| 1861 | */ |
| 1862 | reflowChapter(); |
| 1863 | } |
| 1864 | } |
| 1865 | |
| 1866 | public final void switchNativeFonts() { |
| 1867 | useNativeFonts = !useNativeFonts; |
no test coverage detected