Forgot something
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12751 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
7220b138f2
commit
3295cceb8f
@ -431,7 +431,7 @@ ServerFont::StringWidth(const char* string, int32 numBytes) const
|
||||
|
||||
for (int i = 0; i < numChars; i++) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user