Applied a patch from Stippi to temporarily fix a drawing problem the hard way.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12799 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-05-24 15:37:26 +00:00
parent 8a17a6ea37
commit afbbdf7ce5

View File

@ -142,6 +142,13 @@ AGGTextRenderer::RenderString(const char* string,
{ {
//printf("RenderString(\"%s\", length: %ld, dry: %d)\n", string, length, dryRun); //printf("RenderString(\"%s\", length: %ld, dry: %d)\n", string, length, dryRun);
// ToDo: this is a temporary fix for some drawing problems
// Please remove when the real cause has been found :-)
float size = fFontEngine.height();
fFontEngine.height(size);
fFontEngine.width(size);
fFontEngine.hinting(fHinted);
// "bounds" will track the bounding box arround all glyphs that are actually drawn // "bounds" will track the bounding box arround all glyphs that are actually drawn
// it will be calculated in untransformed coordinates within the loop and then // it will be calculated in untransformed coordinates within the loop and then
// it is transformed to the real location at the exit of the function. // it is transformed to the real location at the exit of the function.