diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-06 21:26:24 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2012-02-07 21:11:34 +0100 |
commit | 812fc04430cfd3863f5bce2319deef26e5d3c316 (patch) | |
tree | ef44383ce06cf3b47ced36f9c6238e892659be07 /docs/FAQ.txt | |
parent | 04a3cdd669726389b3b10c5d2da5440262e3765d (diff) | |
download | Mana-812fc04430cfd3863f5bce2319deef26e5d3c316.tar.gz Mana-812fc04430cfd3863f5bce2319deef26e5d3c316.tar.bz2 Mana-812fc04430cfd3863f5bce2319deef26e5d3c316.tar.xz Mana-812fc04430cfd3863f5bce2319deef26e5d3c316.zip |
Made BrowserBox use the recommended line skip for its font
SDL_ttf provides a separate function for getting the recommended line skip, or
the spacing between two lines of text. When rendering multiple lines of text
this should be used rather than the visual height of the font.
Since the information is only available for TrueTypeFont, a dynamic_cast was
used with a fallback on gcn::Font::getHeight.
Also made some small tweaks but nothing that really affects performance.
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'docs/FAQ.txt')
0 files changed, 0 insertions, 0 deletions