Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to get Symbol font in java apps on Mac OS X




On Aug 28, 2006, at 12:03 PM, email@hidden wrote:

but currently I need to display the Greek phi and psi characters. I 

therefore used the names of the Symbol font:


myFont = new Font("Symbol", Font.PLAIN,10); etc


which works ok going back to Mac OS 9, but not on Mac OS X (where I 

was working), where it reverts to some default sans font, although 

specifying the names of other fonts, eg 'Times' works ok.


  Abandon all your Mac knowledge, ye who enter here!

  The Mac uses platform-independent fonts and character definitions, so the best way to get special characters is to work in a platform independent manner. Specify any of the platform independent fonts, such as Serif, SansSerif, Dialog, etc. and identify your character by its unicode value:

PHI = \u03A6 
phi  = \u03C6 
phi  = \u03D5 (alternate form)
PSI =  \u03A8 
psi  =  \u03C8

  The greek alphabet ranges roughly from \u0386 to \u03CE. 

  See this link for other characters:  http://www.unicode.org/charts/

-- Miguel Muñoz

___________________

There are 10 kinds of people: Those who know binary and those who don't.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.