blackears / svgSalamander

158 stars 57 forks source link

Improve font handling #13

Closed nidi3 closed 7 years ago

nidi3 commented 7 years ago

In Text.java

        for (int i = 0; i < families.length; ++i)
        {
            font = diagram.getUniverse().getFont(fontFamily);
            if (font != null)
            {
                break;
            }
        }

        if (font == null)
        {
//            System.err.println("Could not load font");

            font = new FontSystem(fontFamily, fontStyle, fontWeight, (int)fontSize);
//            java.awt.Font sysFont = new java.awt.Font(fontFamily, style | weight, (int)fontSize);
//            buildSysFont(sysFont);
//            return;
        }
blackears commented 7 years ago

This should be fixed in the latest version.

nidi3 commented 7 years ago

Nice. Just one detail: import com.sun.media.jfxmedia.logging.Logger; is probably not the right logger.

blackears commented 7 years ago

Whoops. Fixed now.