Project: SWT
Bug 79084 Load TrueType fonts directly from a file..
Reported: 2004-11-19 11:14:58 | Status: resolved fixed

In AWT a TrueType font file can be loaded directly into a Font object; File ttfFile = new File("MICR E13B Normal.ttf"); FileInputStream fis = new FileInputStream(ttfFile); Font font = Font.createFont(Font.TRUETYPE_FONT, fis); This functionality is important with applications that display financial documents because security fonts or MICR fonts are rarely installed on an end-user systems. The ability to load a TrueType font file into a org.eclipse.swt.graphics.Font object, or convert a AWT to a SWT is the feature request.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Device.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Device.java bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/graphics/Device.java bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Device.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/graphics/Device.java