From dev-return-29125-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Tue Sep 11 22:30:06 2007 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 50076 invoked from network); 11 Sep 2007 22:30:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 22:30:05 -0000 Received: (qmail 65030 invoked by uid 500); 11 Sep 2007 22:29:56 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 65010 invoked by uid 500); 11 Sep 2007 22:29:56 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 65001 invoked by uid 99); 11 Sep 2007 22:29:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 15:29:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alexei.zakharov@gmail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 22:29:54 +0000 Received: by ug-out-1314.google.com with SMTP id k40so147569ugc for ; Tue, 11 Sep 2007 15:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=jTdgS5NUbPS8x3cquakyPYscIPFhwJFNHdzIZuq4aJU=; b=WebA8tOn1fo4BAEDDB83w9eubok8XRerV++cZ+JxcHsE6oJSB30qj7BHqkq6m8Cz9bUvqeJ7zgglFi3yROkFWDJy7c8h1m8OMyg3jaAhnl+nU3nFYdhe4COcRk58zcAfLu2sAh6fzPdxNdO/CnoelP8xnA1Ivc2Si8aDIHhjEvM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sFXG1AO4j3oNT8Xcex/pgWCTCpppVlA0O2XAASr/oBOxGXyL3q0XG0LQnct+cuAQYb2gRONrbk917FU3a26BivQo3oh7cJV6u+A6x3WzTeNh1QaMWYTyIDFynTzwYA83bH8C1mMSt6RVtICBqM3MxsHruF4S2UPQtgbAsZAdoNE= Received: by 10.78.204.7 with SMTP id b7mr2850161hug.1189549772814; Tue, 11 Sep 2007 15:29:32 -0700 (PDT) Received: by 10.78.174.11 with HTTP; Tue, 11 Sep 2007 15:29:32 -0700 (PDT) Message-ID: <2c9597b90709111529k65762632mea41f20cde2eb38e@mail.gmail.com> Date: Wed, 12 Sep 2007 02:29:32 +0400 From: "Alexei Zakharov" To: dev@harmony.apache.org Subject: Re: [classlib][awt][doc] font properties files In-Reply-To: <46DE5E64.9010700@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2c9597b90709040354o2927791bn69ef123faa9cc1d7@mail.gmail.com> <46DE5E64.9010700@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 : > 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/=85) 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 > >