Windows Font Types

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Windows Font Types

Post by warrenk » Sat Oct 17, 2009 8:56 pm

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?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Oct 17, 2009 10:14 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Post by warrenk » Sun Oct 18, 2009 9:49 pm

Mark,

Thanks for the list. Appreciate your help!

Warren

warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Post by warrenk » Sun Oct 18, 2009 10:06 pm

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun Oct 18, 2009 11:50 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Post by warrenk » Mon Oct 19, 2009 3:59 am

Thanks again Mark...you have been most helpful!

Warren

Philhold
Posts: 64
Joined: Thu Mar 05, 2009 3:39 pm

Post by Philhold » Mon Oct 19, 2009 11:39 am

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

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”