MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / fixFontSize

Method fixFontSize

ij/src/main/java/ij/Menus.java:1816–1819  ·  view source on GitHub ↗

Work around Windows bug that limits menu bar sub-menu to 17 points.

(MenuItem item)

Source from the content-addressed store, hash-verified

1814
1815 /** Work around Windows bug that limits menu bar sub-menu to 17 points. */
1816 private static void fixFontSize(MenuItem item) {
1817 if (IJ.isWindows() && item!=null)
1818 item.setFont(getCachedFont());
1819 }
1820
1821}

Callers 7

addMenuBarMethod · 0.95
getExamplesMenuMethod · 0.95
addExampleMethod · 0.95
addItemMethod · 0.95
addSubMenuMethod · 0.95
getMenuMethod · 0.95
addWindowMenuItemMethod · 0.95

Calls 3

isWindowsMethod · 0.95
getCachedFontMethod · 0.95
setFontMethod · 0.65

Tested by

no test coverage detected