![]() |
【转帖】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. |