diff options
author | Sven Gothel <[email protected]> | 2011-03-29 14:29:50 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-03-29 14:29:50 +0200 |
commit | 4ed4dc3847d8d53a3424011f3d56b00ef246a81e (patch) | |
tree | a086b3800ba824f71ffa76aa7a946aa81a90833c /src/jogamp | |
parent | 2a3a260aece0060f5aa03d83a177d3f373664324 (diff) |
Refactor / Use font name as file path, if not a java font
Diffstat (limited to 'src/jogamp')
-rw-r--r-- | src/jogamp/graph/font/typecast/TypecastFont.java | 3 |
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)); |