Parent Directory | Revision Log | Patch
revision 1.13 by mark, Sat Jul 2 20:32:24 2005 UTC | revision 1.14 by rabbit78, Wed Aug 3 14:42:09 2005 UTC | |
---|---|---|
# | Line 235 public abstract class FontMetrics implem | Line 235 public abstract class FontMetrics implem |
235 | public int charsWidth(char[] buf, int offset, int len) | public int charsWidth(char[] buf, int offset, int len) |
236 | { | { |
237 | int total_width = 0; | int total_width = 0; |
238 | for (int i = offset; i < len; i++) | int endOffset = offset + len; |
239 | for (int i = offset; i < endOffset; i++) | |
240 | total_width += charWidth(buf[i]); | total_width += charWidth(buf[i]); |
241 | return total_width; | return total_width; |
242 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |