.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
How to calculate real font size?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
141 Views, 2 Replies
11-13-2012 09:44 PM
I have point (DBPoint) and I want to draw some text in this point by DrawOverrule.
It works fine:
Point3d textPosition = ....
wd.Geometry.Text(textPosition, point.Normal, Vector3d.XAxis, myText, true, TextStyle);
But how to draw text in two lines?
I can't use MText because it's overruled code (or no?).
So it's required to caclulate real font size and move second line to font vert-size.
Point3d textPosition = .... // first line
wd.Geometry.Text(textPosition, point.Normal, Vector3d.XAxis, myTextLine1, true, TextStyle);
textPosition = textPosition.Add(new Vector3d(???)); // second line
wd.Geometry.Text(textPosition, point.Normal, Vector3d.XAxis, myTextLine1, true, TextStyle);
How to do it?
Thanks,
Pavel.
Re: How to calculate real font size?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 12:05 AM in reply to:
pva75
See if this article will helps
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
C6309D9E0751D165D0934D0621DFF27919
Re: How to calculate real font size?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-14-2012 02:53 AM in reply to:
Hallex
Hi Pavle,
I have not tested it but to use MText in overrule try something like this in WorldDraw(Drawable d,WorldDraw wd) method
Mtext _mText=new Mtext(do constructor here...);
_mText.WorldDraw(wd);
_mText.Dispose();
Richard
