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

mtext linespacing
mtext linespacing
hi,
i hope someone can help me with the following problem:
working at a cad-application implementing several ac-features i got big problems with the correct allignment of mtext. the problem occures if the line space style is "at least" and when i have to calculate the correct linespaces between the lines 'manually'.
so does anyone know a correct formula to get the linespacing if text size changes between two or in one line according to the initial textsize the maximum line sizes and the size of the last item in a line?
i assume also that the linespacing of the line before must take part in such a formula.
ac-reference say it would be 1.66 * linespacefactor * (size of the
characters) but this only fits if the textsize is never changing.
i would be very thankfull for any hints or solutions.
thanks in advance
mfg scsmember
you need not calculate it manually.
you can use oddbmtext::explodefragments() or explode() functions.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)