高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】export oblique ttf text to dwf
export oblique ttf text to dwf
export oblique ttf text to dwf
ttf text height is changed after export to dwf if text's oblique angle != 0. see attached files.
i think it happened because font direction vector length is used for text height calculating (2dexportdevice.cpp):
code:
odfont.m_height = (pstyle->getfont()->getheight() - pstyle->getfont()->getinternalleading())
* ydir.length()
/ pstyle->getfont()->fontabove();
if change ydir.length() to ydir.y texts looks more accurate:
code:
odfont.m_height = (pstyle->getfont()->getheight() - pstyle->getfont()->getinternalleading())
* ydir.y
/ pstyle->getfont()->fontabove();
may be i fail to take something into account?
attached files
you are right. i inserted the fix in our code. thanks.
sergey slezkin
|