![]() |
【转帖】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 |
所有的时间均为北京时间。 现在的时间是 08:09 AM. |