aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-24 12:01:53 +0200
committerSven Gothel <[email protected]>2023-09-24 12:01:53 +0200
commit0c8700589abffe13e42f18d3c755541268d44a34 (patch)
treedb8adf22d8cee7ebd1f9d0aa646ba9035eb5c951 /src/jogl/classes/com/jogamp/graph
parent652cfd2f307e0a34537ff8ec5ae2d023cfc2ce5d (diff)
Graph Fonts: Add 'Material Icons Round-Regular' (APL-2 license) and use it in UISceneDemo03 via hard coded unicode symbol numbers
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-rw-r--r--src/jogl/classes/com/jogamp/graph/font/FontFactory.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java
index 9b9762a05..b873b78ec 100644
--- a/src/jogl/classes/com/jogamp/graph/font/FontFactory.java
+++ b/src/jogl/classes/com/jogamp/graph/font/FontFactory.java
@@ -43,6 +43,7 @@ import com.jogamp.common.util.cache.TempJarCache;
import jogamp.graph.font.FontConstructor;
import jogamp.graph.font.JavaFontLoader;
+import jogamp.graph.font.SymbolsFontLoader;
import jogamp.graph.font.UbuntuFontLoader;
/**
@@ -60,6 +61,9 @@ public class FontFactory {
/** Ubuntu is the default font family, {@value} */
public static final int UBUNTU = 0;
+ /** Symbols is the default symbol font family and contains rounded material symbol fonts, {@value} */
+ public static final int SYMBOLS = 10;
+
/** Java fonts are optional, {@value} */
public static final int JAVA = 1;
@@ -86,6 +90,8 @@ public class FontFactory {
switch (font) {
case JAVA:
return JavaFontLoader.get();
+ case SYMBOLS:
+ return SymbolsFontLoader.get();
default:
return UbuntuFontLoader.get();
}