几何尺寸与公差论坛------致力于产品几何量公差标准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 searching algorithm (http://www.dimcax.com/hust/showthread.php?t=16333)

yang686526 2009-05-05 11:02 AM

【转帖】font searching algorithm
 
font searching algorithm
font searching algorithm
hi,
i've noticed, that oddbtextstyletable::setfont witch font name "arial" calls indirectly findfile twice; first with "arial", next with "arial.shx". is it correct? can i make library not call setfont second time with ".shx" added?
tia
best regards,
michał Śliwka
if findfile() returns some path being called for the first time it will not be called second time.
in situation you described probably it fails to find "arial" so it's called for the second time with "arial.shx".
also chapter "font handling" from dd developer's guide" could be usefull.
sergey slezkin
findfile() returns correct path and it is called second time.


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