Bug 754 - Remove Ubuntu fonts from jogl-all.jar, provide it separately to reduce footprint for the masses.
Summary: Remove Ubuntu fonts from jogl-all.jar, provide it separately to reduce footpr...
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: graph (show other bugs)
Version: 2
Hardware: All all
: --- enhancement
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2013-06-17 20:53 CEST by Sven Gothel
Modified: 2013-10-31 10:49 CET (History)
2 users (show)

See Also:
Type: ---
SCM Refs:
gluegen 2a6a6bb1df175847a7bb84bd741ce3632d6590f6 jogl b57ce5454ddeb7dd4b7c010c5df54faa6e8d951a
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
2a6a6bb1df175847a7bb84bd741ce3632d6590f6
  JarUtil: Add method to generate resource URI from class's Jar URI and resource name

b57ce5454ddeb7dd4b7c010c5df54faa6e8d951a
    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