Changeset 17688 in josm for trunk/src/org
- Timestamp:
- 2021-03-30T09:03:19+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java
r17679 r17688 529 529 // Use more low-level method to find the installed fonts. 530 530 List<String> fontsAvail = new ArrayList<>(); 531 Path fontPath = FileSystems.getDefault().getPath(getSystemEnv("SYSTEMROOT"), "Fonts"); 531 String systemRoot = getSystemEnv("SYSTEMROOT"); 532 if (systemRoot == null) { 533 return fontsAvail; 534 } 535 Path fontPath = FileSystems.getDefault().getPath(systemRoot, "Fonts"); 532 536 try (DirectoryStream<Path> ds = Files.newDirectoryStream(fontPath)) { 533 537 for (Path p : ds) {
Note:
See TracChangeset
for help on using the changeset viewer.