changeset 2293:79a32fe5dd82

Modena addes small and large embedded fonts to test app
author "Jasper Potts"
date Wed, 16 Jan 2013 16:33:31 -0800
parents 7847b4bf9ec5
children 9999d0a6fd84
files apps/experiments/Modena/src/modena/Modena.java
diffstat 1 files changed, 15 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/apps/experiments/Modena/src/modena/Modena.java	Wed Jan 16 18:45:42 2013 -0500
+++ b/apps/experiments/Modena/src/modena/Modena.java	Wed Jan 16 16:33:31 2013 -0800
@@ -286,7 +286,21 @@
                     fontSize = 18;
                     updateCSSOverrides();
                 }
-            }).style("-fx-font: 18px \"Segoe UI\";").toggleGroup(tg).build()
+            }).style("-fx-font: 18px \"Segoe UI\";").toggleGroup(tg).build(),
+            RadioMenuItemBuilder.create().text("Embedded Touch (22px)").onAction(new EventHandler<ActionEvent>(){
+                @Override public void handle(ActionEvent event) {
+                    fontName = "Arial";
+                    fontSize = 22;
+                    updateCSSOverrides();
+                }
+            }).style("-fx-font: 22px \"Arial\";").toggleGroup(tg).build(),
+            RadioMenuItemBuilder.create().text("Embedded Small (9px)").onAction(new EventHandler<ActionEvent>(){
+                @Override public void handle(ActionEvent event) {
+                    fontName = "Arial";
+                    fontSize = 9;
+                    updateCSSOverrides();
+                }
+            }).style("-fx-font: 9px \"Arial\";").toggleGroup(tg).build()
         );
         return mb;
     }