Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: Greek fonts

Hi John:

If you are using a Font (rather than the VisAD default stick characters), you will find the greek symbols in the range u0370 - u03ff if the Font you are using supports these. Just embed the unicode into your string:

JLabel label = new JLabel("The value of \u03c0 is 3.14159");

Since 03c0 is the Unicode value for pi.

The complete list of greek codes is at:
http://www.unicode.org/charts/PDF/U0370.pdf

tom


John Yao wrote:

Hi All,

This is kind of a short question. I am plotting various parameters on the x and y axis and some of them should be displayed in greek fonts (i.e. alpha, sigma and etc.). Has anyone done that on VisAD?

thanks,
john



--
Tom Whittaker (tomw@xxxxxxxxxxxxx)
University of Wisconsin-Madison
Space Science and Engineering Center
Phone/VoiceMail: 608/262-2759
Fax: 608/262-5974


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: