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