<?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>165</bug_id>
          
          <creation_ts>2005-06-10 10:24:18 +0200</creation_ts>
          <short_desc>GLUT 3.8 fixes bugs in glutStrokeLength and adds glutStrokeLengthf</short_desc>
          <delta_ts>2015-09-27 03:09:34 +0200</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</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>181</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:47:53 +0100</bug_when>
    <thetext>


---- Reported by odin1122 2005-06-10 10:24:18 ----

From: http://pyopengl.sourceforge.net/documentation/manual/glutStrokeWidth.
3GLUT.html

We find that:

The deprecated glutStrokeWidth and glutStrokeLength routines return an integer 
rather than a float. Newer GLUT programs should use the newer float-returning 
routine glutStrokeWidthf and glutStrokeLengthf. Note that these newer float 
routines do not exist in implementations prior to GLUT 3.8. Also, the 
glutStrokeLength routine summed integerized character widths so it 
underestimated the length of strings prior to GLUT 3.8, but the implementation 
of glutStrokeLength in GLUT 3.8 and beyond sums the character widths for the 
strings in a float (though glutStrokeLength still returns an integer).

This patch fixes glutStrokeLength to sum up using a float (though it still 
returns an int), and it also adds glutStrokeLengthf which returns the float.



---- Additional Comments From odin1122 2005-06-10 10:25:06 ----

Created an attachment
Patch to fix glutStrokeLength and add glutStrokeLengthf




---- Additional Comments From kbr 2005-06-21 23:46:26 ----

Thanks for the suggested patch. I&apos;ve added glutStrokeWidthf and
glutStrokeLengthf and implemented glutStrokeWidth and glutStrokeLength in terms
of them.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:47 EDT  ---

This bug was previously known as _bug_ 165 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=165
Imported an attachment (id=58)

The original submitter of attachment 58 is unknown.
   Reassigning to the person who moved it here: sgothel@jausoft.com.

</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>58</attachid>
            <date>2005-06-10 10:25:00 +0200</date>
            <delta_ts>2005-06-10 10:25:00 +0200</delta_ts>
            <desc>Patch to fix glutStrokeLength and add glutStrokeLengthf</desc>
            <filename>glutstrokelength-patch</filename>
            <type>text/plain</type>
            <size>996</size>
            <attacher name="Sven Gothel">sgothel</attacher>
            
              <data encoding="base64">ZGlmZiAtTmF1ciBhL2pvZ2wvc3JjL25ldC9qYXZhL2dhbWVzL2pvZ2wvdXRpbC9HTFVULmphdmEg
Yi9qb2dsL3NyYy9uZXQvamF2YS9nYW1lcy9qb2dsL3V0aWwvR0xVVC5qYXZhCi0tLSBhL2pvZ2wv
c3JjL25ldC9qYXZhL2dhbWVzL2pvZ2wvdXRpbC9HTFVULmphdmEJMjAwNS0wNS0yNyAxNDoyNDox
Ni4wMDAwMDAwMDAgLTA3MDAKKysrIGIvam9nbC9zcmMvbmV0L2phdmEvZ2FtZXMvam9nbC91dGls
L0dMVVQuamF2YQkyMDA1LTA2LTEwIDEwOjIxOjUwLjAwMDAwMDAwMCAtMDcwMApAQCAtNDExLDcg
KzQxMSwyMiBAQAogCiAgIHB1YmxpYyBpbnQgIGdsdXRTdHJva2VMZW5ndGggICAoaW50IGZvbnQs
IFN0cmluZyBzdHJpbmcpIHsKICAgICBTdHJva2VGb250UmVjIGZvbnRpbmZvID0gZ2V0U3Ryb2tl
Rm9udChmb250KTsKLSAgICBpbnQgbGVuZ3RoID0gMDsKKyAgICBmbG9hdCBsZW5ndGggPSAwOwor
ICAgIGludCBsZW4gPSBzdHJpbmcubGVuZ3RoKCk7CisgICAgZm9yIChpbnQgaSA9IDA7IGkgPCBs
ZW47IGkrKykgeworICAgICAgY2hhciBjID0gc3RyaW5nLmNoYXJBdChpKTsKKyAgICAgIGlmIChj
ID49IDAgJiYgYyA8IGZvbnRpbmZvLm51bV9jaGFycykgeworICAgICAgICBTdHJva2VDaGFyUmVj
IGNoID0gZm9udGluZm8uY2hbY107CisgICAgICAgIGlmIChjaCAhPSBudWxsKQorICAgICAgICAg
IGxlbmd0aCArPSBjaC5yaWdodDsKKyAgICAgIH0KKyAgICB9CisgICAgcmV0dXJuIChpbnQpIGxl
bmd0aDsKKyAgfQorCisgIHB1YmxpYyBmbG9hdCAgZ2x1dFN0cm9rZUxlbmd0aGYgICAoaW50IGZv
bnQsIFN0cmluZyBzdHJpbmcpIHsKKyAgICBTdHJva2VGb250UmVjIGZvbnRpbmZvID0gZ2V0U3Ry
b2tlRm9udChmb250KTsKKyAgICBmbG9hdCBsZW5ndGggPSAwOwogICAgIGludCBsZW4gPSBzdHJp
bmcubGVuZ3RoKCk7CiAgICAgZm9yIChpbnQgaSA9IDA7IGkgPCBsZW47IGkrKykgewogICAgICAg
Y2hhciBjID0gc3RyaW5nLmNoYXJBdChpKTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>