<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1463</bug_id>
          
          <creation_ts>2023-09-26 04:52:14 +0200</creation_ts>
          <short_desc>Graph Font: Whitespace or undefined Glyphs shall not cover (any) height exceeding overall CharSequence</short_desc>
          <delta_ts>2023-09-26 04:53:32 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>graph</component>
          <version>2.6.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>rami.santina</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>949558bc0bcd10a24293b5880c90940008d0118a</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6886</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-09-26 04:52:14 +0200</bug_when>
    <thetext>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 &apos;metrics.getAscentFU() - metrics.getDescentFU()&apos;, 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&apos;s ascent metric values as exposed in Font and Font.Metric.

This resolves remaining layout issues, including button labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6887</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-09-26 04:53:32 +0200</bug_when>
    <thetext>Fixed as described in commit 949558bc0bcd10a24293b5880c90940008d0118a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>