<?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>1040</bug_id>
          
          <creation_ts>2014-08-03 21:05:22 +0200</creation_ts>
          <short_desc>Font space character width problem (GPU renderer)</short_desc>
          <delta_ts>2023-07-12 03:04:21 +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.5.0</version>
          <rep_platform>pc_x86_64</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1064</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="picoworm">picoworm</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>alan.zgb</cc>
    
    <cc>kdropucic</cc>
    
    <cc>rami.santina</cc>
    
    <cc>sgothel</cc>
          
          <cf_type>FEATURE</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4063</commentid>
    <comment_count>0</comment_count>
    <who name="picoworm">picoworm</who>
    <bug_when>2014-08-03 21:05:22 +0200</bug_when>
    <thetext>Library: jogl-2.2-b1103-20140709 windows amd64: 

The functions: 
1:  font.getGlyph(&apos; &apos;).getAdvance(fontSize, true); 
2:  font.getAdvanceWidth(Glyph.ID_SPACE, fontSize); 
return different result

Both of them must return the size of space character. 

this 2 functions is used inside jogl to determine width.
I looked inside source, and see that first function is used in font.getMetricBounds function to get size of string. 
And second one is used in drawString3D, to render the string 

So font.getMetricBounds return wrong value when space character inside a string</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6815</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2023-07-12 03:04:11 +0200</bug_when>
    <thetext>Whitespace resolved</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>