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