2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
14 BClipboard
* gMouseClipboard
= NULL
;
18 IsFontUsable(const BFont
& font
)
20 // TODO: If BFont::IsFullAndHalfFixed() was implemented, we could
21 // use that. But I don't think it's easily implementable using
27 // manually check if all applicable chars are the same width
28 char buffer
[2] = { ' ', 0 };
29 int firstWidth
= (int)ceilf(font
.StringWidth(buffer
));
31 // TODO: Workaround for broken fonts/font_subsystem
35 for (int c
= ' ' + 1; c
<= 0x7e; c
++) {
37 int width
= (int)ceilf(font
.StringWidth(buffer
));
39 if (width
!= firstWidth
)