几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】getting text as outlines rather than triangles (http://www.dimcax.com/hust/showthread.php?t=16420)

yang686526 2009-05-05 11:32 AM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 03:09 PM.