几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】polygonwithholesout 90, rendering true-type te (http://www.dimcax.com/hust/showthread.php?t=17935)

yang686526 2009-05-06 10:13 PM

【转帖】polygonwithholesout 90, rendering true-type te
 
polygonwithholesout (), rendering true-type text
polygonwithholesout (), rendering true-type text
i implemented a custom rendering device (now derived from odgsbasevectorizedevice) to convert dwgs to pdf.
well, it works fine, but since i upgraded to dd 1.10 i noticed that some true-type texts where not rendered correctly, in fact some letters such as 'r' and 'a' where not rendered. well, i saw that i must implement another fuction polygonwithholesout () to render these polygons. the problem is that the library i'm using to generate the pdfs doesn't provide a function like polypolygon () in win32 api, that corrrectly fills the polygons, so the best that i can do is render them unfilled.
my question is: is there some way of breaking these polygons into simpler polygons, that should be fully-filled? (or could someone point me to some literature/algorithm that does this).
for me another solution would be (assuming that polygonwithholesout () is called just for true-type characters) to render the text myself (since pdf supports it), but i didn't find a way of doing this (like overriding odgiconveyorgeometry::textproc
since it's not virtual...); is it possible to custom-render only true type text?
thanks,
tiago gehring


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