Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Default Font for all OS?
Default Font for all OS? [message #454472] Thu, 21 April 2005 16:21 Go to next message
Ivan is currently offline IvanFriend
Messages: 149
Registered: July 2009
Senior Member
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 05:29 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
<!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>
Previous Topic:bind system.out stream to SWT text widget
Next Topic:How to make a CellEditor on a TreeViewer lose the focus on right-click ?
Goto Forum:
  


Current Time: Sat Mar 06 15:11:24 GMT 2021

Powered by FUDForum. Page generated in 0.01704 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top