Changeset 16438 in josm for trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
- Timestamp:
- 2020-05-17T14:18:22+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/util/GuiHelper.java
r15586 r16438 33 33 import java.util.concurrent.ExecutionException; 34 34 import java.util.concurrent.FutureTask; 35 import java.util.stream.Stream; 35 36 36 37 import javax.swing.GrayFilter; … … 640 641 Collection<String> fonts = Arrays.asList( 641 642 GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()); 642 for (String f : new String[]{"Khmer UI", "DaunPenh", "MoolBoran"}) { 643 if (fonts.contains(f)) { 644 setUIFont(f); 645 break; 646 } 647 } 643 Stream.of("Khmer UI", "DaunPenh", "MoolBoran") 644 .filter(fonts::contains) 645 .findFirst() 646 .ifPresent(GuiHelper::setUIFont); 648 647 } 649 648 }
Note:
See TracChangeset
for help on using the changeset viewer.