summaryrefslogtreecommitdiffstats
path: root/src/jogamp/graph/font
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogamp/graph/font')
-rw-r--r--src/jogamp/graph/font/typecast/TypecastFont.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jogamp/graph/font/typecast/TypecastFont.java b/src/jogamp/graph/font/typecast/TypecastFont.java
index b95dccf21..c5e291a55 100644
--- a/src/jogamp/graph/font/typecast/TypecastFont.java
+++ b/src/jogamp/graph/font/typecast/TypecastFont.java
@@ -59,6 +59,9 @@ class TypecastFont implements FontInt {
public static TypecastFont create(Vertex.Factory<? extends Vertex> factory, String name) {
String path = JavaFontLoader.getByName(name);
+ if(null == path) {
+ path = name;
+ }
OTFontCollection fontset;
try {
fontset = OTFontCollection.create(new File(path));