I've attached a small application that just reads the available fonts. I've attached both source and a precompiled jar file (use which ever you are comfortable with). Can people who are running Mac OS X 10.2.x let me know if your results with squiggle match your results with this test app (either both succeed, both fail, or a mismatch)?
This may also be easier to use for finding the 'bad font' than starting squiggle.
TJB wrote:
This font issue on OS X seems to be a thorn to a number of leading Java applications. This morning I fired up IDEA, up my favorite Java IDE and there was not one bit of readable text in the GUI. The 1.4.1 Java update form Apple had messed with the default system font, so the solution was to select another font, counting button shapes through a set of dialogs to do it!
For the heck of it I just downloaded the CodeGuide 6.1demo and what do you know, it complains about a "Bad Font" that must be removed before CodeGuide can be installed.
It sounds like they must have the same problem, do they give any indication of what the bad font is?
It would seem that detailed knowledge of the OS X font system for Java developers has become imperative.
So one option would be to try and code around the problem. This would still 'cripple' the font matching on Mac OS X for systems with a 'bad font'. So the code could do the following:
1) Check if the font name is in the font name mapping, if so you are done. 2) Try creating the Font with just 'new Font("Foo");' - if the font name exactly matches the installed font this will find it. If it works canonicalize the name and add it to the font name mapping. 3) If #2 didn't work then try and read the list of installed fonts (which may fail on Mac OS X - I can have it generate a warning message that fonts may not match properly due to a bad font on the system). If reading works canonicalize them and try step 1 again. 4) If we still don't find it fall back to the next font on the list of CSS fonts.
On Tuesday, September 23, 2003, at 01:50 AM, Andreas Neumann wrote:
thanks for the link - will help me for better understanding of what's going on
on my system, regarding fonts.
Will try to experiment, which of my font caused the problem ...
Andreas
Zitiere TJB <[EMAIL PROTECTED]>:
Batik for OS X,
Found the following document at O'Reilly about fonts on OS X. This is part II, part I is available with the link and shows where all the fonts on OS X are located.
http://www.macdevcenter.com/lpt/a/1166
Cheers,
Thomas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- He who asks is a fool for five minutes, but he who does not ask remains a fool forever. -- Chinese Proverb ---------------------------------------------- Andreas Neumann - Department of Cartography Swiss Federal Institute of Technology (ETH) ETH Hoenggerberg, CH-8093 Zurich, Switzerland Phone: ++41-1-633 3031, Fax: ++41-1-633 1153 e-mail: [EMAIL PROTECTED] www: http://www.karto.ethz.ch/neumann/ SVG.Open/Carto.net: http://www.svgopen.org/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
/****************************************************************************** * * Copyright 2003, Eastman Kodak Company, All rights reserved * *****************************************************************************/
import java.awt.*; public class FontTest { public static void main(String [] args) { GraphicsEnvironment env; env = GraphicsEnvironment.getLocalGraphicsEnvironment(); String fontNames[] = env.getAvailableFontFamilyNames(); int nFonts = fontNames != null ? fontNames.length : 0; for(int i=0; i<nFonts; i++) System.err.println("Font: " + fontNames[i]); Font f = new Font("SansSerif", 0, 12); } };
FontTest.jar
Description: application/java-archive
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]