几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】font error in dwgdirect 2.2.0 (http://www.dimcax.com/hust/showthread.php?t=16332)

yang686526 2009-05-05 11:02 AM

【转帖】font error in dwgdirect 2.2.0
 
font error in dwgdirect 2.2.0
font error in dwgdirect 2.2.0
hi everyone!
when i used the dwgdirect 1.14 version, font is reading
but 2.2.0 version, font is not being read.
what can i solve this problem?
please help me.
cf
no error.jpg : not error image
error1.jpg :error image
ttt.dwg: autocad drawing in autocad2005
attached images
hello kjnoh,
the problem is with full big font file name ( c:\r13\com\fonts\whgtxt.shx). dwgdirect ( and acad2007 too ) uses font name (without path) to getting codepage text for converting to/from unicode right. we will fix this problem in next release.
also you need to add non acad big fonts during initialize your application by next way odcharmapper::addbigfontwithindex(fontname, cogeindex). acad2007 has bigfont.ini file for this purpose.
so you can try to add in your application for test odcharmapper::addbigfontwithindex( _t("c:\\r13\\com\\fonts\\whgtxt.shx"), 3).
best regards,
sergey z.
quote:
originally posted by sergey z.
hello kjnoh,
the problem is with full big font file name ( c:\r13\com\fonts\whgtxt.shx). dwgdirect ( and acad2007 too ) uses font name (without path) to getting codepage text for converting to/from unicode right. we will fix this problem in next release.
also you need to add non acad big fonts during initialize your application by next way odcharmapper::addbigfontwithindex(fontname, cogeindex). acad2007 has bigfont.ini file for this purpose.
so you can try to add in your application for test odcharmapper::addbigfontwithindex( _t("c:\\r13\\com\\fonts\\whgtxt.shx"), 3).
thank sergey z.
you've been a great help.


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