aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/graph/curve
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2023-09-26 04:53:06 +0200
committerSven Gothel <sgothel@jausoft.com>2023-09-26 04:53:06 +0200
commit949558bc0bcd10a24293b5880c90940008d0118a (patch)
tree9cf8ca77be2948062ff2232e58d206bdbdd5b3b7 /src/jogl/classes/jogamp/graph/curve
parent5f876580500471531dc6973eda7eb4d9878b871d (diff)
Bug 1463 - Graph Font: Whitespace or undefined Glyphs shall not cover (any) height exceeding overall CharSequence
TypecastFont using `metrics.getAscentFU() - metrics.getDescentFU()` for ascent used for all undefined and whitespace Glyphs w/o a spatial outline, leads to a potential exceeding height compared to the actual used bounding box of the rendered text. This in turn leads to layout issues, e.g. button labels are placed too low. Solution: - Whitespace/Undefined: Drop full height 'metrics.getAscentFU() - metrics.getDescentFU()', b/c of non-existing shape height. - Otherwise, layout on AABBox or created empty shape would pick up such default hhea-table ascent which might exceed actual string height. Sideeffect would be if user relies on height of a whitespace. However, knowing this fact - a user may always pick the hhea-table's ascent metric values as exposed in Font and Font.Metric. This resolves remaining layout issues, including button labels.
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve')
0 files changed, 0 insertions, 0 deletions