Using jface from eclipse 3.1:
(swt-fox from cvs, linux)
FontData[] dFontData = JFaceResources.getDefaultFont
().getFontData();
PreferenceStore s = new PreferenceStore("df");
PreferenceConverter.setDefault(s, "a", dFontData);
Font f = new Font(null,
PreferenceConverter.getFontDataArray(s, "a"));
Result:
Unexpected Signal : 11 occurred at PC=0x401D4193
Function=(null)+0x401D4193
Library=/usr/java/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.s
o
NOTE: We are unable to locate the function name
symbol for the error
just occurred. Please refer to release documentation
for possible
reason and solutions.
Current Java thread:
at org.eclipse.swt.internal.fox.Fox.FXFont_new(Native
Method)
at org.eclipse.swt.graphics.Font.init(Font.java:253)
at org.eclipse.swt.graphics.Font.<init>(Font.java:116)
at Snippet95.main(Snippet95.java:36)
Logged In: NO
Well, it isn't really font creation that is the problem.
FontData[] x = PreferenceConverter.getFontDataArray(s, "a");
System.out.println(x[0]) ;
returns something different than was put in.
works on gtk/win32, not fox.