* Messed up IsFontUsable(), this closed bug #3895 if I understand diver

correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30670 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2009-05-08 07:14:18 +00:00
parent 639e61ad42
commit 35e29efeef

View File

@ -37,7 +37,7 @@ IsFontUsable(const BFont &font)
int lastWidth = 0;
char buffer[2] = {0, 0};
for (int c = 0x20 ; c <= 0x7e; c++){
buffer[1] = c;
buffer[0] = c;
int width = (int)ceilf(font.StringWidth(buffer));
if (c > 0x20 && width != lastWidth)