几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-05-07, 04:45 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】使用.net在在文档状态栏实现文档标签控件功能 - 精华帖集合 yang686526 ObjectARX(VB.NET/C#) 0 2009-04-29 05:17 PM
【转帖】[翻译] metaprogramming with autocad (二) - 精华帖集合 yang686526 ObjectARX(VB.NET/C#) 0 2009-04-29 05:02 PM
【转帖】autocad 二次开发毕业设计~~``! 用vba画齿轮。 yang686526 数据库ObjectDBX 0 2009-04-27 05:42 PM
【转帖】autocad arx 学习笔记(一)(转载) yang686526 ObjectARX(C++) 0 2009-04-16 09:12 AM
如何在VB中连接AutoCAD cad DirectDWG 1 2007-01-28 04:05 PM


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


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多