- i think this fixes the y centering for all resolutions, after testing we can remove lots of unused properties and code

This commit is contained in:
Mark Vejvoda
2011-07-01 01:18:47 +00:00
parent 97e19785a9
commit 1b72bcafe8
6 changed files with 18 additions and 6 deletions

View File

@@ -40,6 +40,7 @@ float FontMetrics::DEFAULT_Y_OFFSET_FACTOR = 2.0f;
bool Font::fontIsRightToLeft = false;
float Font::scaleFontValue = 1.0;
int Font::baseSize = 0;
int Font::faceResolution = 72;
//int Font::scaleFontYOffset = 0;
//
@@ -129,6 +130,7 @@ Font::Font(FontTextHandlerType type) {
try {
textHandler = NULL;
textHandler = new TextFTGL(type);
TextFTGL::faceResolution = faceResolution;
metrics.setTextHandler(this->textHandler);
}
catch(exception &ex) {