![]() |
【转帖】smooth Truetype Font Letters
smooth truetype font letters?
smooth truetype font letters? hi, i have 2 questions concerning true type text rendering in dwgdirect. 1) is there a variable, which can control the smoothness of the truetype font text? i.e. to be exploded to more polygons in the odgsbasevectorizeview functions for rendering (usually passed to the shell() function). 2) can i get only linear letter of a tt font? i.e. a letter whose "thickness" is zero. this is usefull in rendering tt font texts when seen from far away - when drawn filled, opengl usually makes them look ugly at small sizes. i know i can get the outline of the text but it will not improve too much the rendering of the small letters. thanks in advance for any help or advice. regards chudomir best regards chudomir 1. unfortunately, no. we have plans to implement something like taking deviation into account when rendering ttfs. 2. no, you can't. btw, our opengl device draws both filled part and outlines for ttfs (when we didn't draw outlines, text disappeared when very zoomed out). sincerely yours, george udov thanks for your reply, george, i'll check the opengl device once more but i have a feeling when we rendered both the outline and the fill, the letters were not so good quality as we expected. may be i haven't got the very latest version. best regards chudomir odgsopenglvectorizeview::generateshellfaces odgsopenglvectorizeview::generatemeshfaces adds outlines to ttfs: code: // to make visible when very zoomed out if((rm==k2doptimized || (rm==kflatshaded || rm==kgouraudshaded) && m_bprocessingttf) && effectiveplotstyle().fillstyle()==odps::kfssolid && !(vertexdata() && vertexdata()->truecolors()) ) { generateshellwires(facelistsize, pfacelist, 0, pfacedata); } sincerely yours, george udov thanks - i'll take a look. regards chudomir best regards chudomir are there any news about smoothing ttf text? any news?? |
| 所有的时间均为北京时间。 现在的时间是 02:35 AM. |