I convert a lot of text with mdlText_getElementDescr:
status=mdlText_getElementDescr (&edPText, &edP->el.text_2d, NULL);
if (status == SUCCESS)
{
// do nothing mdlElmdscr_freeAll(&edPText);
}
Used Memory grows over the time. Is there really a bug in this function? How to free the Memory? Is there any Workaround?
Unknown said:but those @TTF fonts (whatever this @ sign means...)
I found only this information in MicroStation help: For vertical text in Asian languages, select a vertical font (a font´s whose names begin with “@”).
So it seems selected fonts (with "vertical feature") are displayed with the sign @, but I guess these fonts should not be used in languages using Latin characters.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Unknown said: mdlElmdscr_read(&edP, elmAdr[i], ref, FALSE, NULL); type=mdlElement_getType(&edP->el); if (type == TEXT_ELM) { mdlText_getElementDescr(&edPText, &edP->el.text_2d, NULL); ... }
mdlElmdscr_read(&edP, elmAdr[i], ref, FALSE, NULL); type=mdlElement_getType(&edP->el); if (type == TEXT_ELM) { mdlText_getElementDescr(&edPText, &edP->el.text_2d, NULL); ... }
I'm suspicious of that code:
mdlText_getElementDescr is a curious function, because it works only in 2D, and there's no 3D equivalent. It makes your code unusable in a 3D model. The text API has changed substantially during the lifetime of MicroStation V8, and it may be that that function no longer works properly. However, only a Bentley person can tell us definitively.
Regards, Jon Summers LA Solutions
test2.dgn
Hi Stefan,
here is a file
Regards, Tom