beproudstandupcom / pyglet

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

font.GlyphString.get_subwidth(0, 0) -> width of first glyph #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. create a glyph string with one glyph or more.

2. gs.get_subwidth(x, x) -> 0 for any x, except if x is 0, in which case
you get the width of the first glyph. The doc string says that the to_index
is exclusive, so get_subwidth(0, 0) should return 0.

Original issue reported on code.google.com by euccas...@gmail.com on 27 Sep 2007 at 3:39

GoogleCodeExporter commented 9 years ago
Fixed in r1285 (untested).

Original comment by Alex.Hol...@gmail.com on 29 Sep 2007 at 2:03