Ignore:
Timestamp:
2018-10-14T15:15:50+02:00 (8 years ago)
Author:
Don-vip
Message:

see #14319, see #16838 - update to svgSalamander 1.1.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/kitfox/svg/Text.java

    r11525 r14328  
    272272        for (int i = 0; i < families.length; ++i)
    273273        {
    274             font = diagram.getUniverse().getFont(fontFamily);
     274            font = diagram.getUniverse().getFont(families[i]);
    275275            if (font != null)
    276276            {
     
    278278            }
    279279        }
    280        
     280
    281281        if (font == null)
    282282        {
    283             font = new FontSystem(fontFamily, fontStyle, fontWeight, (int)fontSize);
     283            //Check system fonts
     284            font = FontSystem.createFont(fontFamily, fontStyle, fontWeight, (int)fontSize);
     285        }
     286
     287        if (font == null)
     288        {
     289            font = FontSystem.createFont("Serif", fontStyle, fontWeight, fontStyle);
    284290        }
    285291
Note: See TracChangeset for help on using the changeset viewer.