Use JOGL edition of TextRenderer #272
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: Filling out this template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the
maintainer's discretion.
Description of the Change
Delete local copy of worldwind/render/TextRenderer in favor of version that is maintained by JOGAMP. Update JOGL jar files with released version 2.5.0, build Build: 2.5-b1533-20230818. That build includes the DPI scaling fix for TextRenderer, which was committed to the jogl repo on 6/4, commit 25fd535a11.
JOGL jar files were pulled from:
https://jogamp.org/deployment/maven/org/jogamp/gluegen/gluegen-rt/2.5.0/
https://jogamp.org/deployment/maven/org/jogamp/gluegen/gluegen/2.5.0/
https://jogamp.org/deployment/maven/org/jogamp/jogl/jogl-all/2.5.0/
This can be checked by examining the MANIFEST.MF file in the jar files.
Why Should This Be In Core?
WorldWind code had a copy of TextRenderer that originated with the JOGAMP group. However, it had not been maintained with updates from the JOGAMP group, specifically, plugs for resource leaks and an error check.
The debug flag can still be set with a runtime property definition (-Djogl.debug.TextRenderer). The other change in the WorldWind edition, to allow dynamic setting of DISABLE_GLYPH_CACHE for debugging of the TextRenderer code, is not likely to be needed at this point in time, and can be easily enabled with a debugger if need be.
Benefits
Less maintenance needed for a local edition of TextRenderer. Improvements made by the JOGAMP group can be picked up by updating the jar files.
Potential Drawbacks
Applicable Issues
DPI Scaling