Thread: Skins!
View Single Post
  #21 (permalink)  
Old April 29th, 2005
verdyp's Avatar
verdyp verdyp is offline
LimeWire is International
 
Join Date: January 13th, 2002
Location: Nantes, FR; Rennes, FR
Posts: 306
verdyp is flying high
Default

Quote:
Originally posted by Zimdale
Well it was a pretty simple program. May upgrade it a bit later if I feel like it. Thanks for the compliment though

Umm one thing ide like to know by a programmer or someone that just knows it. Will the limewire font support any font on your computer or is there only cirtan ones that work? If theres only cirtan ones which ones work?
Limewire will use any font that your installation of Java accepts to load. Java by default is installed to use a default set of fonts according to the startup system locale. On Java 1.5, this changed because now the new font properties file is smarter and will be able to handle fonts for many more scripts at the same time, using a new format for the fonts properties file. There's still a default set of fonts preconfigured in Java, and this properties file assumes that your system already has those listed fonts preinstalled on your system.

So, for these reasons, the default fonts used in Java are only made of the core fonts that are available and installed by default on any OS installation (there's an exception for Thai, because the Sun JRE ships with an additional TrueType font which will be used by default in Thai environments, because not all Thai installations are installed with the same core font, but also because the core fonts for Thai shipped with Windows are very poor and too much narrow and tall, causing nightmares when adpating the display size of a GUI dialog).

Now Limewire used by default the OS-independant Metal look and feel, just tweaked with some settings to make Limewire themes. since some versions, Limewire now ships with native platform themes which are accessible only on the same OS type: there are some native themes for MacOSX, a Windows theme (that uses the native Windows theme settings from the Display control panel).

The Windows theme is however not implemented natively, for compatibility reasons as Limewire is based on Swing and AWT portable display components.

For now Limewire has no project to use SWT instead (that would enhance the performance and would also allow *using* rather then *emulating* the native OS look and feel). This would complicate the support for now, as SWT has still lots of integration problems on many host installations, notably when it is used on systems not made for developers. SWT is excellent for example within Eclipse (which is also a Java written application to develop Java applications).

Switching Limewire from AWT+Swing to SWT is a lot of development efforts and there's no guarantee that such rewritten GUI would work on older OSes used by Limewire users (so this would require maintaining two branches in parallel for the Limewire GUI, one using Swing+AWT and the other using SWT).

It's unfortunate because SWT is already ready to support antialiased text throughout the GUI, as set up by your operating system, including with support for ClearType on notebooks and LCD/TFT displays, and because SWT uses much less memory than Swing+AWT (but Sun has considerably enhanced this in Java 1.4.1 and 1.5, by rewriting AWT so that it will make use of the new Java2D API which now can profit of accelerated hardware, and DirectX or OpenGL display interfaces)
__________________
LimeWire is international. Help translate LimeWire to your own language.
Visit: http://www.limewire.org/translate.shtml
Reply With Quote