|Re: Which font for all platforms? [message #492966 is a reply to message #492753]
||Thu, 22 October 2009 14:14
| Grant Gayed
Registered: July 2009
Of course the first standard question is, are you sure you want to do this?
The fonts that are used by default on the various platforms come from the
OS, and should generally be used by apps in order to appear visually
consistent with other native apps. Additionally, some users may have
specifically changed these default fonts in their OS, either for aestetics
or for practical reasons (eg.- accessibility).
That being said, if you still want to do this, you'll just need to find a
font that you like that's commonly-available. All you need is a common face
name, then use Device.getFontList(...) to get the available sizes. There
are many available fonts in common between my Windows 2000 and OSX 10.5
machines: Arial, Comic Sans MS, Courier, Courier New, Georgia, Impact,
others... However when I also look at RHEL4 the only one I see in common is
"Hauke Fuhrmann" <email@example.com> wrote in message
> Hi there,
> How do I correctly enter a font name that is platform independent? I
> want to set a font explicitly such that it is correct for all platforms
> So what is a platform independent font?
> If I do not set any font at all, the different platforms use different
> default fonts (Windows=Tahoma, Linux=Sans, Mac=Lucida). Is there any way
> to get the same font for different platforms?
> What's the right way to do it?
Powered by FUDForum
. Page generated in 0.05103 seconds