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

yang686526 2009-05-04 03:30 PM

【转帖】access violation during font mapping
 
access violation during font mapping
access violation during font mapping
i tried to implement font substitution function using getpreferablefont overridable. but when i try to replace bigfont.shx to wlmaru2004p4.ttf a database dll throws access violation exception. it seems that my font mapping function works only for some of fonts (i.e txt.shx -> arial.ttf), and for some does not. any advices how to solve this problem and what i am doing wrong ?
for more details:
- i am using getpreferablefont to do font substitution and i simply return "wlmaru2004p4.ttf" when "bigfont.shx" is as a parameter.
- my dwg file which i prepared for tests purpose contains some japanesse characters
- wlmaru2004p4.ttf is installed in my windows font directory
- i am using winxp (eng) sp2
- i am using dwgdirect 1.13.02
text style may have two fonts. one is main font and other is big font. big font is always shx and always with main shx font.
acad allows to substitute big font to other big font only. unfortunately dwgdirect hasn't this support now. we try to fix it in next release. thank you for report.
best regards,
sergey z.


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