Changeset 10337 in josm


Ignore:
Timestamp:
2016-06-08T02:07:58+02:00 (3 years ago)
Author:
Don-vip
Message:

Windows 10: add new Segoe UI Historic font + add unit tests

Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r10152 r10337  
    346346    @Override
    347347    public Collection<FontEntry> getAdditionalFonts() {
    348         Collection<FontEntry> def = new ArrayList<>();
     348        Collection<FontEntry> def = new ArrayList<>(33);
    349349        def.add(new FontEntry("devanagari", "", "")); // just include in fallback list font already defined in template
    350350
    351351        // Windows scripts: https://msdn.microsoft.com/en-us/goglobal/bb688099.aspx
    352352        // IE default fonts: https://msdn.microsoft.com/en-us/library/ie/dn467844(v=vs.85).aspx
     353
     354        // Windows 10 and later
     355        def.add(new FontEntry("historic", "Segoe UI Historic", "SEGUIHIS.TTF"));       // historic charsets
    353356
    354357        // Windows 8/8.1 and later
Note: See TracChangeset for help on using the changeset viewer.