![]() |
【转帖】problem with mtext position
problem with mtext position
problem with mtext position hi, when i'm reading .dwg files with mtext and font is missing i replace it with default font ( i'm overriding getpreferablefont / findfile for that) but text produced in this way is in different place than oryginal text. is there any possibility to recalculate text's with new font ? odamfcapp have the same problem .. if a font is substituted by another one text position may change because another font has different metrics (character dimensions/proportions). how autocad displays this text if the font is missing? if odamfcapp displays the text differently from autocad in the same situation than please provide a sample to reproduce the situation. sergey slezkin you have right. autocad display mtexts the same like odamfcapp but in my program i have problem with justification. how can i get pure text width from mtext object? i have enclosed screenshot where it is showed my problem, texts aren't in good place because of justification. i can do this if i had textwidth. when i am trying to get textwidth() i get width of mtext bounding box what is useless.. attached images (57.2 kb, 15 views) try to use actualwidth() method. note the result will be correct in case font is available. best regards, sergey z. |
所有的时间均为北京时间。 现在的时间是 04:36 AM. |