* 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:
parent
639e61ad42
commit
35e29efeef
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user