Page 1 of 1

Is there a way to draw not scaled font?

Posted: Wed Jan 08, 2014 10:43 am
by ortseam
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 ))

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

Posted: Wed Jan 08, 2014 2:16 pm
by Nubeat7
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

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

Posted: Wed Jan 08, 2014 3:33 pm
by ortseam
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?

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

Posted: Wed Jan 08, 2014 8:22 pm
by Tronic
Only way is to use a bitmap fonts.

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

Posted: Wed Jan 08, 2014 9:12 pm
by ortseam
SORRY! I've posted wrong information. The font doesn't scaling. It was my mistake. The topic may be removed.