| Default Font for all OS? [message #454472] |
Thu, 21 April 2005 12:21  |
Eclipse User |
|
|
|
Hi,
is there a default Font that is present in all operating systems?
If I use a Font on Windows and it is not present on Linux, then the
default Font of the OS is used... but the problem is that the size of the
Font goes to default too!
For example, I have assigned to a Button the Font "Tahoma" with size 8.
When I run the application under Linux the Font is set to "Serif" with
size 10.
Any ideas?
Ivan
|
|
|
| Re: Default Font for all OS? [message #454482 is a reply to message #454472] |
Fri, 22 April 2005 01:29  |
Eclipse User |
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="serif">Sans, Serif, and Times New Roman are the only fonts
I know of that are truly universal. You'll have to do some research of
your own on that one. I suggest picking one of those and setting up a
static final String[] with the platform specific names corresponding to
those universal fonts.<br>
<br>
Daniel<br>
</font><br>
Ivan wrote:
<blockquote cite="mid65a921e3137b4c2321e9d92598510cfd$1@www.eclipse.org"
type="cite">Hi,
<br>
is there a default Font that is present in all operating systems?
<br>
If I use a Font on Windows and it is not present on Linux, then the
default Font of the OS is used... but the problem is that the size of
the Font goes to default too! For example, I have assigned to a Button
the Font "Tahoma" with size 8. When I run the application under Linux
the Font is set to "Serif" with size 10.
<br>
<br>
Any ideas?
<br>
<br>
Ivan
<br>
<br>
</blockquote>
</body>
</html>
|
|
|
Powered by
FUDForum. Page generated in 0.03340 seconds