几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】ext Not Displaying Properly When Autocad Is Ins (http://www.dimcax.com/hust/showthread.php?t=18727)

yang686526 2009-05-07 04:45 PM

【转帖】ext Not Displaying Properly When Autocad Is Ins
 
text not displaying properly when autocad is installed
text not displaying properly when autocad is installed
when the drawing is displayed on a machine that does not have any of the fonts that are used in the drawing, it appears that dwgdirect uses default fonts and the text is displayed properly. however if autocad is installed on the same machine and some (not all) of the required fonts are installed, the text is not properly displayed. any clues?
thanks.
could you provide more details? which text (ttf, shx), what does "not properly" means? does odamfcapp display your sample file correctly?
sergey slezkin
the sample "singledoc" works fine, the problem appears to be in the way we are using the library. one of the sample drawings that i tested uses the fonts romand.shx and romans.shx. initially these fonts are not installed on the test machine. installing autocad installs these fonts and causes the problem.
the problem is that the lines are drawn broken. meaning in the letter "x" the straight lines are not continuous but are broken in between, with the background color visible. when i delete these font files from the windows font directory the problem goes away and the display is normal.
if you need more input or you need me to try something please let me know.
thanks.
could you make the following experiment:
put romans.shx and romand.shx into your application folder (or folder there the drawing resides) and see if the problem still exists?
sergey slezkin
thanks for your reply. a quick clarification, even though the drawing refers to romand.shx, it is the presence of romand__.ttf in the windows font directory that causes the problem. anyway as suggested by you i copied these ttf files to my app directory and the problem is still there. i guess as long as these files are present in the windows fonts directory the problem will persist.
thanks.
i asked you to copy .shx to the application or drawing folder.
if a text is to be rendered with romans.shx and no acad fonts present on computer both your application and our sample should use build-in default font.
if autocad is installed. application (or sample) tries to locate romans.shx and use it. in case of failure it tries to use similar ttf installed.
probably sample succeds to find .shx and your application uses ttf because failed to locate .shx
and shell representing some characters is rendered incorrectly.
btw, which dd version do you use? we failed to reproduce the problem in ealier versions too.
do you have your own shellproc()? maybe it fails to process the data representing "x" character?
sergey slezkin
i finally got it to work. i copied the required shx files to our application folder and the drawings are now rendered properly. i really appreciate your help in sorting out this weird/vague problem. thank you.


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