Skip to content

Commit

Permalink
add magic number 64 to fix kerning issues. Taken from https://gist.gi…
Browse files Browse the repository at this point in the history
  • Loading branch information
chriship committed Sep 26, 2018
1 parent 06bea48 commit a7983f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/graphics/ofTrueTypeFont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ int ofTrueTypeFont::getKerning(uint32_t c, uint32_t prevC) const{
if(FT_HAS_KERNING( face )){
FT_Vector kerning;
FT_Get_Kerning(face.get(), FT_Get_Char_Index(face.get(), c), FT_Get_Char_Index(face.get(), prevC), FT_KERNING_UNFITTED, &kerning);
return kerning.x * fontUnitScale;
return kerning.x / 64;// *fontUnitScale;
}else{
return 0;
}
Expand Down

0 comments on commit a7983f5

Please sign in to comment.