高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】ext Size Mapping With Vectorization
text size mapping with vectorization
text size mapping with vectorization
hi,
we're using the dd libs to import from and export to dwg/dxf formats. the problem we face is the mapping of text size attributes between our document model and autocad.
during export (to dxf) we set the following properties:
oddbtextstyletablerecordptr pstyle = oddbtextstyletablerecord::createobject();
...
pstyle->settextsize(a);
pstyle->setxscale(b);
...
oddbtextptr ptext = oddbtext::createobject();
...
ptext->setheight(c);
ptext->setwidthfactor(d);
...
while importing using vectorization, how can we recover a, b, c, d from the arguments passed to our textproc()?
using the arguments passed to our textproc()
ptext->setheight(v.length());
ptext->setwidthfactor(u.length()/v.length());
there are property current text in textstyle in textproc() arguments.
best regards,
sergey z.
|