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

yang686526 2009-05-04 03:14 PM

【转帖】a question about oddbmtextcontents90
 
a question about oddbmtext::contents()
a question about oddbmtext::contents()
hi, i used oddbmtext::contents() to get mtext entity's the character contents. in the attached dwg file, there are some mtext entity's which character contents is not same as the display, such as a mtext entity's character contents is "45?nom", but the display is "45°nom". why?
attached images
not all fonts (code pages) have degree symbol (unicode 00b0). if font used to dispay the string is wrong you may see garbage or '?' symbol.
btw, on my computer (ansi1251) i see degree symbol correctly (in both odamfcapp or vc debugger).
sergey slezkin
quote:
originally posted by sergey slezkin
not all fonts (code pages) have degree symbol (unicode 00b0). if font used to dispay the string is wrong you may see garbage or '?' symbol.
btw, on my computer (ansi1251) i see degree symbol correctly (in both odamfcapp or vc debugger).
hi, thanks!
how can i solve this problem?
i'm not sure what do you mean by problem.
contents() returns text string stored in the file. this string contains "b0" character. this character has different appearence in different fonts. to display it correctly the correct font should be used.
sergey slezkin
quote:
originally posted by sergey slezkin
i'm not sure what do you mean by problem.
contents() returns text string stored in the file. this string contains "b0" character. this character has different appearence in different fonts. to display it correctly the correct font should be used.
thanks, i read it correctly in window's english version.


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