-
Bug
-
Resolution: Fixed
-
P3
-
None
-
fx2.0
The System font family names aren't enumerated by Font.getFontNames()
======= case code =======
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.text.Font;
import java.util.List;
/**
*
* @author Peter Song
* @date Aug 30, 2011 3:16:26 PM
*/
public class FontNamesTest extends Application{
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Application.launch(args);
}
@Override
public void start(Stage stage) throws Exception {
List<String> list = Font.getFontNames();
int i = 1;
for(String s: list){
System.out.println(i++ + " : " + s);
}
}
}
--------------------------
======= case code =======
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.text.Font;
import java.util.List;
/**
*
* @author Peter Song
* @date Aug 30, 2011 3:16:26 PM
*/
public class FontNamesTest extends Application{
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Application.launch(args);
}
@Override
public void start(Stage stage) throws Exception {
List<String> list = Font.getFontNames();
int i = 1;
for(String s: list){
System.out.println(i++ + " : " + s);
}
}
}
--------------------------