Welcome Guest Search | Active Topics | Members

Changing line height Options
edorn
Posted: Thursday, July 12, 2007 5:03:24 PM
Rank: Member
Groups: Member

Joined: 6/5/2007
Posts: 4
Points: 0
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
Posted: Friday, July 13, 2007 10:59:55 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 386
Points: 403
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.

Best wishes, Alex.
edorn
Posted: Tuesday, July 17, 2007 1:49:44 PM
Rank: Member
Groups: Member

Joined: 6/5/2007
Posts: 4
Points: 0
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




Thanks!


Edgar
Alex Kon
Posted: Tuesday, July 17, 2007 9:46:14 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 386
Points: 403
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.

Best wishes, Alex.
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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.