]> OCCT Git - occt-copy.git/commit
0029225: Visualization - Font_FTFont::AdvanceX() retrieves kerning value for incorrec...
authorkgv <kgv@opencascade.com>
Fri, 13 Oct 2017 12:52:51 +0000 (15:52 +0300)
committerkgv <kgv@opencascade.com>
Mon, 17 Feb 2020 09:40:47 +0000 (12:40 +0300)
commit9f9ac0fb5a874c5ea25b04b0d32d0fe77f37a0af
treee4e32a1eae62f1e566ce02e351818d2a49f64efb
parente0fd0b87971e941cd006fad0760b3b67d75da093
0029225: Visualization - Font_FTFont::AdvanceX() retrieves kerning value for incorrect characters pair

Fixed FT_Get_Kerning misuse within Font_FTFont::AdvanceX()/Font_FTFont::AdvanceY().
Font_FTFont::loadGlyph() has been corrected to not return TRUE
in case if method called with 0 argument second+ time.
src/Font/Font_FTFont.cxx
src/Font/Font_FTFont.hxx
tests/3rdparty/fonts/B3