查看单个帖子
旧 2009-05-06, 06:54 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】odamfcapp - getsubstitutefont90 and getalternatefontname90

odamfcapp - getsubstitutefont() and getalternatefontname()
odamfcapp - getsubstitutefont() and getalternatefontname()
when getsubstitutefont() and getalternatefontname() are called, then the findfile() gets called which then finds the file and returns the fullpath, odgitextstyle::m_sfontpath parameter in cdwgviewer::drawtext(...) is empty string or null
in comparison, if getpreferablefont() is called then findfile() gets called which finds the file and returns the fullpath, odgitextstyle::m_sfontpath contains that fullpath.
i overrode these methods from odamfcapp to be able to debug through them.
the problem is i'm not able to get access to the fullpath returned by findfile() when getsubstitutefont() "fontalt" is used during drawtext() or textproc()
any idea?
thanks,
codey
quote:
originally posted by codey
the problem is i'm not able to get access to the fullpath returned by findfile() when getsubstitutefont() "fontalt" is used during drawtext() or textproc()
any idea?
thanks,
codey
it is bug in dwgdirect. setting odgitextstyle::m_sfontpath is missed in case
getsubstitutefont() is used. we will fix it in next release.
best regards,
sergey z.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)