查看单个帖子
旧 2009-05-05, 11:32 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】getting text as outlines rather than triangles

getting text as outlines rather than triangles
getting text as outlines rather than triangles
we want to read in text entities as polylines desrcibing the outlines of the truetype text characters. however, we get loads of triangles to describe the text. looking with the debugger, we see
odtruetypefont::drawcharacter()
this calls a number of odgigeometrysimplifier::shellproc() routines, ending up in triangleout, which gets to polygonout.
how do we make the library bypass the geometrysimplifier, and call polygonout or polylineproc with the vectors that describe the character outlines?
hi,
you should call oddbdatabase::settextfill(false).
quote:
originally posted by dmitry a. novikov
hi,
you should call oddbdatabase::settextfill(false).
struggling to find this. can't find it in the help file.
what include file do i need?
all i can find is settextfill() in dbplotsettings.h, but it is commented out!
hi,
sorry for misleading you. it's oddbhostappservicesfff">::settextfill(). (pdb->appservices()->settextfill()).
textfill is a autocad's system variable. it's declared in sysvardefs.h and accessors in oddbhostappservices for it are generated using a macro.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)