Page 1 of 1

Windows Font Types

Posted: Sat Oct 17, 2009 8:56 pm
by warrenk
I am creating an application for Windows only. I want to set the font of my application when it loads. Is there a list of fonts I could be pretty sure 99% of PCs support?

Posted: Sat Oct 17, 2009 10:14 pm
by Mark
warrenk,

Arial, Helvetica, Courier New, Tahoma

You could also include the following font with your software:

http://ftp.gnome.org/pub/GNOME/sources/ ... vera/1.10/

I amost always use Arial on the PC.

Best,

Mark

Posted: Sun Oct 18, 2009 9:49 pm
by warrenk
Mark,

Thanks for the list. Appreciate your help!

Warren

Posted: Sun Oct 18, 2009 10:06 pm
by warrenk
When I set my textfont, do I have to set it for every feld or could I just do something like this...

on preopenstack
if "Courier New" is among the lines of the fontNames
then set the textFont of me to "Courier New"
else if "Arial" is among the lins of the fontnames
.
.
.etc.

end preopenstack

Posted: Sun Oct 18, 2009 11:50 pm
by Mark
Dear Warren,

If you are positive that you have no objects with their own text font, style, alignment, colours and other text properties, then you can set the font by just setting the textFont property of the stack. However, if you have changed the text properties of e.g. word 4 of line 6 in field x, setting the textFont of the stack may not affect the appearance of that word and you might need to write a script to set the text properties of that word separately.

Best,

Mark

Posted: Mon Oct 19, 2009 3:59 am
by warrenk
Thanks again Mark...you have been most helpful!

Warren

Posted: Mon Oct 19, 2009 11:39 am
by Philhold
The list is a bit wider than Mark suggests here. Web designers share some font issues to cross platform application developers. I know you are only interested in Windows but by default the list of Web fonts includes those that are almost always on Windows systems. Just do a Google search for Web Safe Fonts.

If you do ever develop for more than one platform you will find that subtle differences in font measurement on each platform can spoil your beautiful layouts.

Cheers

Phil