Added TODO comment, removed leftover.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34020 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -211,13 +211,14 @@ IsFontUsable(const BFont &font)
|
|||||||
if (font.IsFixed())
|
if (font.IsFixed())
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
//font_height fontHeight;
|
|
||||||
|
|
||||||
// manually check if all applicable chars are the same width
|
// manually check if all applicable chars are the same width
|
||||||
char buffer[2] = { ' ', 0 };
|
char buffer[2] = { ' ', 0 };
|
||||||
int firstWidth = (int)ceilf(font.StringWidth(buffer));
|
int firstWidth = (int)ceilf(font.StringWidth(buffer));
|
||||||
|
|
||||||
|
// TODO: Workaround for broken fonts/font_subsystem
|
||||||
if (firstWidth <= 0)
|
if (firstWidth <= 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (int c = ' '+1; c <= 0x7e; c++) {
|
for (int c = ' '+1; c <= 0x7e; c++) {
|
||||||
buffer[0] = c;
|
buffer[0] = c;
|
||||||
int width = (int)ceilf(font.StringWidth(buffer));
|
int width = (int)ceilf(font.StringWidth(buffer));
|
||||||
|
|||||||
Reference in New Issue
Block a user