This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
edorn  
#1 Posted : Thursday, July 12, 2007 9:03:24 AM(UTC)
edorn

Rank: Member

Groups: Guest
Joined: 6/4/2007(UTC)
Posts: 4

Hi,

I am using Graphics Mill and was wondering if, when drawing text, is it possible to change line height of the font that is being drawn?

Thanks,

Edgar

Alex Kon  
#2 Posted : Friday, July 13, 2007 2:59:55 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Guest
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello Edgar,

If you are using Aurigma.GraphicsMill.Drawing.GdiGraphics class, the size of the text is determined by size of the font object which you pass to the DrawString(...) method. Font size can be specified in the font object constructor or you can use Aurigma.GraphicsMill.Drawing.Font.Size property to change size of the existing font object.

Edited by user Tuesday, January 1, 2008 4:41:57 AM(UTC)  | Reason: Not specified

edorn  
#3 Posted : Tuesday, July 17, 2007 5:49:44 AM(UTC)
edorn

Rank: Member

Groups: Guest
Joined: 6/4/2007(UTC)
Posts: 4

Hi Alex,

Thanks for the reply, but what I was looking for was for a way to change the height of the gap between 2 lines of text. As an example with the following image, the gp that is beign shown as H4

UserPostedImage

Thanks!

Edgar

Alex Kon  
#4 Posted : Tuesday, July 17, 2007 1:46:14 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Guest
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hi Edgar,

Unfortunatelly there is no way to change this height because Windows font renderer doesn't provide such parameters. The only thing I can suggest is to break your multiline text into separate strings and render them manually.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.