blob: 1bcd59dc752e63c8174a957c3707fc4f75d27fde (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module imports.ice4481b;
import imports.ice4481a;
class Font
{
public:
int charHeight(dchar c) { return c == 's'; }
int textHeight(in string text)
{
auto maxHeight = (dchar ch) { return charHeight(ch); };
return reduce!(maxHeight)(text);
}
}
|