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

yang686526 2009-05-05 11:05 AM

【转帖】forcing default fon
 
forcing default font?
forcing default font?
is it possible to replace a ttf font with the default font?
i've tried using getpreferablefont to do this by returning a bad font name, but dwgdirect still uses the original font rather than the default font.
quote:
originally posted by chadm
is it possible to replace a ttf font with the default font?
i've tried using getpreferablefont to do this by returning a bad font name, but dwgdirect still uses the original font rather than the default font.
in case getpreferablefont returns bad font name dwgdirect uses original font as design. so your implementation this method must return existed font. built in dwgdirect font is used in case any other fonts aren't found. more detail see dwgdirect reference topic ''font handling".
best regards,
sergey z.


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