![]() |
【转帖】fonts in dwgdirect 1.06
fonts in dwgdirect 1.06
fonts in dwgdirect 1.06 i'm using dwgdirect 1.06 to develop a dwg to pdf converter routine, using gs classes, and the rendering is working fine (these classes are really great). i'm just facing a problem with fonts, all letters appear as small boxes for me (also in the odamdiapp viewer example). how can i specify the location of my fonts (as i did with opendwg viewkit)? thanks, tiago gehring tiagog@weg.com.br in vc++ 6 i write that : in exhostappservices.h sample file ////////////////////////////////////////////////// protected: cstring m_fontpath; public: virtual odstring findfile (const char *pcfilename, oddbdatabase *pdb=null, oddbhostappservices::findfilehint hint=kdefault); cstring getfontpath () {return (m_fontpath);}; void setfontpath (const cstring &p_fontpath) {m_fontpath = p_fontpath;}; ////////////////////////////////////////////////// in exhostappservices.cpp sample file /// find file /// font etc ..... /// odstring exhostappservices::findfile (const char *pcfilename, oddbdatabase *pdb, oddbhostappservices::findfilehint hint) { odstring l_find = oddbhostappservices::findfile (pcfilename, pdb, hint); if (l_find == "") { cfilefind l_finder; cstring l_strsearchfile; l_strsearchfile.format("%s\\%s",getfontpath, pcfilename); bool l_bworking = l_finder.findfile(l_strsearchfile ); if (l_bworking) { l_bworking = l_finder.findnextfile(); l_find = l_finder.getfilepath (); } } return l_find; } ///////////////////////////////////////////////////////////////////// in initinstance() of my application i have add setfontpath("c:\\projet\\calluna\\font\\"); sorry correct syntax is : ..... l_strsearchfile.format("%s\\%s",getfontpath(), pcfilename); .... and .... setfontpath("c:\\projet\\calluna\\font"); .... thanks! |
所有的时间均为北京时间。 现在的时间是 11:09 AM. |