1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

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.
This commit is contained in:
kgv
2017-10-13 15:52:51 +03:00
committed by bugmaster
parent bc4a38670e
commit 82be4141b6
3 changed files with 63 additions and 39 deletions

View File

@@ -2,8 +2,7 @@ puts "============"
puts "OCC24181 Render text as BRep (check alphabet)"
puts "============"
puts ""
pload MODELING
pload VISUALIZATION
pload MODELING VISUALIZATION
vfont add [locate_data_file DejaVuSans.ttf] SansFont
@@ -18,6 +17,7 @@ asdfghjkl;'
ASDFGHJKL:"
zxcvbnm,./
ZXCVBNM<>?<3F>
AVATAR Y.
}
text2brep aBTextN $THE_TEXT -font $THE_FONT_NAME -height $THE_FONT_SIZE -aspect regular -composite off
@@ -26,12 +26,12 @@ checkshape aBTextN
checkshape aBTextC
ttranslate aBTextC 220 0 0
vsetdispmode 1
vtop
vdisplay aBTextN
vdisplay aBTextC
vclear
vinit View1
vtop
vdisplay -dispMode 1 aBTextN aBTextC
vfit
vglinfo
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
vdump ${imagedir}/${casename}.png