Hi,
I'd like to draw text with sub- and superscript in my custom entity. In MText or Dimension, this string "161{\H0.6x;\S5^;}" will be interpreted as :
I'd like to have the same in my custom entity : geometry().text(_T("161{\H0.6x;\S5^;}"), ...) with raw parameter = Adesk::kFalse and text isn't interpreted (but tags like %%o, %%u, ... are correctly evaluated). Is it possible to use such text in custom entities?
I considered using unicode characters for each superscripts (¹, ², ³, ...), but the problem is for other parameters like underscore. "161{\H0.6x;\S5/;}" will be interpreted as :
Any suggestions are welcomed.
The easiest would be to keep an embedded AcDbMText in your custom entity.
It would need to take part in the dwgInFields/dwgOutFields mechanism, and you can use mode->geometry.draw(m_text); or or m_text->worlDraw(mode); inside your subWordDraw;
Thank you for your suggestion. I know I could have an embedded AcDbMText, but it's a complex entity and I want to have an optimized code and drawing primitives only.