Forgot something
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12751 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -431,7 +431,7 @@ ServerFont::StringWidth(const char* string, int32 numBytes) const
|
|||||||
|
|
||||||
for (int i = 0; i < numChars; i++) {
|
for (int i = 0; i < numChars; i++) {
|
||||||
FT_Load_Char(face, glyphIndex[i], FT_LOAD_NO_BITMAP);
|
FT_Load_Char(face, glyphIndex[i], FT_LOAD_NO_BITMAP);
|
||||||
width += ((float)face->glyph->metrics.horiAdvance / 64.0) / fSize;
|
width += (float)face->glyph->metrics.horiAdvance / 64.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delete[] convertedBuffer;
|
delete[] convertedBuffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user