查看单个帖子
旧 2009-05-06, 08:16 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】oddbtext attributes

oddbtext attributes.
oddbtext attributes.
hello:
i磎 writing a dwg file that is intended to represent exactly a gdi drawing.
i磛e met no problem until i磎 writing text entities.
this is an old problem to me, the problem to know the exact size of a given windows font.
the gdi text formatting functions consider that the characters are into a "text cell", with a bunch of attributes that vary from one font type to another and make very difficult to establish a method of write the text strings as oddbtext entities.
i use the text height in order to obtain the text position.
one thing i'd like to know is: 縲hat does the value height i pass to oddbtext::setheight(height) represent, just the "text height", or the text height plus any kind of internal or external leading?
can you give me an advice in order to make an acceptable translation of text entities from gdi to dwg using dwgdirect?.
thanks.

in autocad text height is the height of "a" character (0x41).
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)