following code will get me xSize and ySize, but as i zoom in and out i can see that text size stays constant, but size should be longer if i zoom out, if i understand right Size is in ppi(point per inch) so i'd need to know how many points in an inch depending on zoom level so that i can get correct text length, any idea how to get this?
Code:
double xSize = 0.0;
double ySize = 0.0;
display.StartDrawing(display.hDC, (short)esriScreenCache.esriNoScreenCache);
((ITextSymbol)textSymbol).GetTextSize(display.hDC, display.DisplayTransformation, text, out xSize, out ySize);
display.FinishDrawing();