Closed nidi3 closed 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; }
font = diagram.getUniverse().getFont(fontFamily);
font = diagram.getUniverse().getFont(families[i]);
If (font == null)
This should be fixed in the latest version.
Nice. Just one detail: import com.sun.media.jfxmedia.logging.Logger; is probably not the right logger.
import com.sun.media.jfxmedia.logging.Logger;
Whoops. Fixed now.
In Text.java
font = diagram.getUniverse().getFont(fontFamily);
should befont = diagram.getUniverse().getFont(families[i]);
If (font == null)
should probably also do a loop over families.