Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Is there a way to draw not scaled font?

For general discussion related FlowStone

Is there a way to draw not scaled font?

Postby ortseam » Wed Jan 08, 2014 10:43 am

Hi!
One simple question.
When I set font size in Ruby module like this:
font=Font.new "Arial Narrow",1.5,"normal"
and next use this font in:
v.drawString string, font,sf,[0,4,4,2],b
the font gets scaled by Windows display font size setting (if it is other then 100%).
Is there a way to make font size independent of Windows font scale parameter?

UPDATE!!! I've posted wrong information. The font doesn't scaling. It was my mistake. Sorry ))
Last edited by ortseam on Wed Jan 08, 2014 9:11 pm, edited 1 time in total.
ortseam
 
Posts: 12
Joined: Sun Dec 27, 2009 1:35 pm

Re: Is there a way to draw not scaled font?

Postby Nubeat7 » Wed Jan 08, 2014 2:16 pm

dont know what exactly you mean but you can set string format flags and use the measureString methode, you find more information in the userguide under drawing/text, maybe one of the flags

here are the gdi+ flags which are also described in the userguide

http://msdn.microsoft.com/en-us/library/windows/desktop/ms534181(v=vs.85).aspx
User avatar
Nubeat7
 
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna

Re: Is there a way to draw not scaled font?

Postby ortseam » Wed Jan 08, 2014 3:33 pm

Thanks for the link but I've not yet found the solution there.

Nubeat7 wrote:dont know what exactly you mean

I'll try to explain in other words:
Windows has the setting: Control Panel > Display > Set Custom Text Size (DPI)
This setting affects the text drawn by Ruby module in FS. I'd like the text to be the same size independently of this Windows setting (like it's seen in most applications/plugins). Is it possible?
ortseam
 
Posts: 12
Joined: Sun Dec 27, 2009 1:35 pm

Re: Is there a way to draw not scaled font?

Postby Tronic » Wed Jan 08, 2014 8:22 pm

Only way is to use a bitmap fonts.
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Is there a way to draw not scaled font?

Postby ortseam » Wed Jan 08, 2014 9:12 pm

SORRY! I've posted wrong information. The font doesn't scaling. It was my mistake. The topic may be removed.
ortseam
 
Posts: 12
Joined: Sun Dec 27, 2009 1:35 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 70 guests