Forgot to add: font.properties is located in modules/awt/src/main/resources/font.properties.xp
2007/9/12, Alexei Zakharov <[EMAIL PROTECTED]>: > Hi, > > I've just committed my first font properties file for Windows. It > contains physical to logical fonts mapping for European languages > (fonts like Arial, Times New Roman) as well as for East Asian > languages: Chinese, Japanese and Korean. I would be appreciate if > someone with for example Chinese Windows or locale installed can try > it and make sure I don't break anything at least. > > BTW I didn't add mappings for such supported-by-RI languages as Hebrew > or Thai because I neither know nor have fonts for them. It would be > nice if someone who have such knowledge can help with it. > > Thanks, > Alexei > > 2007/9/5, Tim Ellison <[EMAIL PROTECTED]>: > > Alexei Zakharov wrote: > > > Hi all, > > > > > > Recently I was trying to run one nice java application on Harmony that > > > uses East Asian fonts. And I encounter the situation that on some > > > machines (especially that run Windows Server 2003) Harmony displays > > > empty boxes instead of hieroglyphs in menus, button labels and etc. At > > > the same time RI displays valid characters there. Currently we have > > > two issues filed to JIRA about this topic: HARMONY-4713 and > > > HARMONY-4526. > > > > > > After further investigation I've found that issue is caused by default > > > font configuration mechanism implemented in Harmony. RI has special > > > font configuration files that are described for example in [1]. You > > > can associate several physical fonts with one java logical font in RI. > > > Several physical fonts are needed for covering various character > > > subsets like alphanumeric, Chinese, Arabic and so on. The most > > > surprising thing is that we have font.properties in Harmony too. The > > > format is simpler, but it is implemented nevertheless. However, I > > > neither found any mention about it in our AWT docs [2] nor any sample > > > font.properties files in %JRE_HOME%/lib or elsewhere. This way, I had > > > to study the source code of classes from "org.apache.harmony.awt.gl" > > > and "org.apache.harmony.awt.gl.font" packages in order to learn our > > > own format of font.properties and create the font configuration I > > > need. > > > > > > I don't think we want all our users to go the way I went to create > > > custom font configurations. So I suggest: > > > - Add a description of our format of font.properties to [2] > > > - Create sample font.properties file(s) and place it in %JRE_HOME%/lib > > > - Create default font configurations for all platforms > > > (Windows/Linux/…) in order to be able to handle various languages by > > > default since RI can do this (see abovementioned JIRAs) > > > > > > Thoughts? Suggestions? Objections? > > > > Sounds good to me. Thanks for figuring it all out. > > > > Regards, > > Tim > > > > > [1] http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html > > > [2] http://harmony.apache.org/subcomponents/classlibrary/awt.html > > > > -- Alexei Zakharov, Intel ESSD
