高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|