beproudstandupcom / pyglet

Automatically exported from code.google.com/p/pyglet
0 stars 0 forks source link

GlyphString.get_subwidth(0,0) doesn't return 0 #145

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call pyglet.font.GlyphString.get_subwidth(0,0)

I'm assuming this is unintended as it breaks my code and means I need to 
write a specific exception for this case. If you call get_subwidth() with 
the first and last index as 0, it will return the full width of the glyph 
string instead of 0. If you call it with any other 2 identical indexes, 
eg. get_subwidth(1,1) then it will return 0, as expected.

Original issue reported on code.google.com by leo.p.di...@gmail.com on 29 Sep 2007 at 10:27

GoogleCodeExporter commented 9 years ago
Sorry this has already been submitted and fixed, I forgot to select "All 
Issues" 
when searching! Apologies.

Original comment by leo.p.di...@gmail.com on 29 Sep 2007 at 10:30

GoogleCodeExporter commented 9 years ago

Original comment by Alex.Hol...@gmail.com on 29 Sep 2007 at 3:12