From 42517d7f6cfd6614bbc38fa55e93f65464ec7fb2 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 13 Nov 2009 13:54:27 +0000 Subject: [PATCH] Added a check which makes WebDings fail the IsFontUsable() check. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34019 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/AppearPrefView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/terminal/AppearPrefView.cpp b/src/apps/terminal/AppearPrefView.cpp index 6d96bea661..615305f8d2 100644 --- a/src/apps/terminal/AppearPrefView.cpp +++ b/src/apps/terminal/AppearPrefView.cpp @@ -211,10 +211,13 @@ IsFontUsable(const BFont &font) if (font.IsFixed()) return true; + //font_height fontHeight; + // manually check if all applicable chars are the same width char buffer[2] = { ' ', 0 }; int firstWidth = (int)ceilf(font.StringWidth(buffer)); - + if (firstWidth <= 0) + return false; for (int c = ' '+1; c <= 0x7e; c++) { buffer[0] = c; int width = (int)ceilf(font.StringWidth(buffer));