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

analytical bug of oddbmtext::explodefragments().
analytical bug of oddbmtext::explodefragments().
example string : "abc\p .......... efg"
... is long space.
result.
string 1."abc"
string 2.".........."
string 3."efg"
it is resolved to three.
last edited by morichika; 17th february 2006 at 01:57 amfff">.
if this is bug or not depends on mtext box width.
if the mtext width is not enough to hold "long space" and "efg" in single line where would be 3 fragments as you described.
how your example is displayed in autocad?
sergey slezkin
sample data upload.
attached images (18.3 kb, 11 views)
(13.7 kb, 8 views)
attached files (75.1 kb, 5 views)

i tried 1.14.01, 1.13 and even 1.12. and i see in odamfcapp exactly the same results as in autocad.
different results you have are probably caused by different fonts used by autocad and dd-based application. they may have different metrics and so text in dwgdirect is displayed in 3 lines.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)