MCPcopy Create free account
hub / github.com/dumbledore/AlbiteREADER / setFontSize

Method setFontSize

src/org/albite/albite/BookCanvas.java:1846–1864  ·  view source on GitHub ↗
(final byte fontSizeIndex)

Source from the content-addressed store, hash-verified

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;

Callers 1

Calls 2

loadFontMethod · 0.95
reflowChapterMethod · 0.95

Tested by

no test coverage detected