Bug 754

Summary: Remove Ubuntu fonts from jogl-all.jar, provide it separately to reduce footprint for the masses.
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: graphAssignee: Sven Gothel <sgothel>
Severity: enhancement CC: rami.santina, sgothel
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
gluegen 2a6a6bb1df175847a7bb84bd741ce3632d6590f6 jogl b57ce5454ddeb7dd4b7c010c5df54faa6e8d951a
Workaround: ---

Description Sven Gothel 2013-06-17 20:53:52 CEST

Comment 1 Sven Gothel 2013-10-26 00:34:37 CEST
3 MB uncompressed .. du -hsc src/jogl/classes/jogamp/graph/font/fonts/ubuntu/*
~1.5M in jar

30% of jogl-all.jar
Comment 2 Sven Gothel 2013-10-31 10:49:15 CET
  JarUtil: Add method to generate resource URI from class's Jar URI and resource name

    Remove the ubuntu fonts from atomic/jogl-util-graph.jar and hence all derivated 'all' JAR files.
    The Android jar files still contain the fonts as assets!
    atomic/jogl-util-graph-fonts-p0.jar contains the fonts and is either referenced by:
      - UbuntuFontLoader: Using class based Jar URI derivation using TempJarCache to [down]load
        and extract the jar file (similar to native lib-loading).
      - Explicitly via traditional classpath, see jnlp-files/jogl-applet-runner-newt-GraphTextDemo01b-napplet.html
    The pack200 jogl-all.jar file is now below 1MB