![]() |
【转帖】bug in oddbtextverticalmode90
bug in oddbtext::verticalmode()?
bug in oddbtext::verticalmode()? i have a text in a dwg-file which is of the alignment "middle" (5th entry in the autocad2006 dropdown-list for alignment modes). in autocad, this text is centered vertically and horizontally relative to the alignment point. when this file is imported with dwgdirect, the oddbtext object gives a horizontal alignment of oddb::ktextmid (ok), but a vertical alignment of oddb::ktextbase! shouldn't the vertical alignment be oddb::ktextvertmid in this case? i also read this thread: this is not a bug. alignment is defined by 2 values (dxf 72 - horizontal alignment and dxf 73 - vertical alignment) but the meaning of these values is a bit weird. for example: if first value is 4 and second 0 it means "middle". actually the result is the same as if first value is 1 (center) and second is 2 (middle). i don't know why it was designed so in autocad. probably because vertical alignment was introduced a bit later than horizontal. and initially the single value (dxf 72) was responsible for both horizontal an vertical alignment. sergey slezkin quote: originally posted by sergey slezkin this is not a bug. alignment is defined by 2 values (dxf 72 - horizontal alignment and dxf 73 - vertical alignment) but the meaning of these values is a bit weird. for example: if first value is 4 and second 0 it means "middle". actually the result is the same as if first value is 1 (center) and second is 2 (middle). ... that makes it clear, thank you very much! |
所有的时间均为北京时间。 现在的时间是 05:08 AM. |