forked from paupawsan/Irrlicht
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getDimension no longer calculate character height every time anymore.…
… Instead for a certain font of a certain size, the line height (at least the default line height) should be predetermined at the point of initializing/loading stage of the font. Also originally the calculation involved was using ascender info plus the most descended glyph as the total line height, but that value was actually not honored when drawing and outputing the whole text with newlines. It used only ascender data, and of course that will cause clutter at some point.
- Loading branch information
1 parent
0b226e6
commit 56121a1
Showing
2 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters