高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】ext Alignment Problem9oddbktextbottom0
text alignment problem(oddb::ktextbottom)
text alignment problem(oddb::ktextbottom)
hi,
i have a problem with setting text alignment correctly. in the case of setverticalmode( oddb::ktextbottom ) the result is that the text appears below the alignment point (which is btw at the correct position) instead of above the alignment point (the distance is correct, the direction is wrong). if i understand it correctly, the position of the text is computed by dwgdirect. all other information (alignment point coordinates, alignment flags) come out correctly. also, if autocad recomputes the position, it sets to the correct value (above the alignment point). i don't have similar problems with the other cases of vertical alignment, and the (in)correctness of the result does not depend on the horizontal alignment. i tried to place the font files into several places (to make sure that they are found:-) i also used absolute path in the setfilename(...) function, with no effect.
if i forced a value for the position, i could place the text to its correct palce, but only if the horizontal alignment was left. (it seemed a hack anyway by adding the distance twice:-)
i am using version 1.10.
can you help me with this problem?
thank you,
miklos
hi,
quote:
if i understand it correctly, the position of the text is computed by dwgdirect.
you understand right. it is bug in adjustalignment() method of oddbtext class. this bug will be fixed in dd 1.10 update in the near future. thank you for detail report.
--
best regards,
sergey zaitcev
|