From 07da0949aae6d13c7cca12bc4728e98b161dbf42 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 20 May 2023 14:34:33 +0200 Subject: Relocate 'jar/atomic/jogl-fonts-p0.jar' -> 'jar/jogl-fonts-p0.jar' to simplify inclusion in distribution; UbuntuFontLoader's Uri is patched accordingly. This font jar file is actually not an atomic in the sense it being aggregated to e.g. jogl-all.jar or even a fat jar. Hence it is more suitable to have it all visible in the top-dir next to the main jars. --- src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/jogl/classes/jogamp/graph/font') diff --git a/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java b/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java index 71d18b17e..46cd4cfab 100644 --- a/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java +++ b/src/jogl/classes/jogamp/graph/font/UbuntuFontLoader.java @@ -49,7 +49,6 @@ public class UbuntuFontLoader implements FontSet { // FIXME: Add cache size to limit memory usage private static final IntObjectHashMap fontMap = new IntObjectHashMap(); - private static final Uri.Encoded jarSubDir = Uri.Encoded.cast("atomic/"); private static final Uri.Encoded jarName = Uri.Encoded.cast("jogl-fonts-p0.jar"); private static final String absFontPath = "jogamp/graph/font/fonts/ubuntu/" ; @@ -138,7 +137,7 @@ public class UbuntuFontLoader implements FontSet { Platform.initSingleton(); if( TempJarCache.isInitialized(false) ) { try { - final Uri uri = JarUtil.getRelativeOf(UbuntuFontLoader.class, jarSubDir, jarName); + final Uri uri = JarUtil.getRelativeOf(UbuntuFontLoader.class, null, jarName); final Exception e0 = SecurityUtil.doPrivileged(new PrivilegedAction() { @Override public Exception run() { -- cgit v1.2.3