Ok, I've identified the issue, which is that TerraTheme's font, Verdana,
cannot display Chinese characters (it doesn't have the glyphs).

Thinking about a fix now... ideas are welcome.  One possible fix that Greg
thought of would be to use resource bundles to load our theme config (fonts
and colors), to allow for Locale-specific fonts to be used.

-T

2009/10/7 Todd Volkert <tvolk...@gmail.com>

> I just ran this test, and it looks like the window's title shows the
> characters correctly, but the button does not.  Is that the behavior you're
> seeing as well?  I will investigate this.
>
> For the benefit of those watching this thread, I tried adding <?xml
> version="1.0" encoding="UTF-8"?> to the WTKX file as well, to no avail.
>
> -T
>
> 2009/10/7 ice ice <iceme...@hotmail.com>
>
>
>> Hi all,
>> Thank you very much for your info.
>>
>> I've attached my screen shot of testing Chinese font for your infor.
>>
>> My wtkx file is as below, I'm sure it is saved as UTF-8 endoding.
>>
>> -------------------------------------------------------------------------------------------
>> <Window title="中文标题Chinese window title" maximized="false"
>> icon="icons/house.png"
>>  xmlns:wtkx="http://pivot.apache.org/wtkx";
>> xmlns:collections="org.apache.pivot.collections"
>>  xmlns:content="org.apache.pivot.wtk.content"
>> xmlns="org.apache.pivot.wtk">
>>  <content>
>>   <BoxPane preferredWidth="800" preferredHeight="600">
>>                 <PushButton buttonData="中文按钮Chinese button title"/>
>>   </BoxPane>
>>  </content>
>> </Window>
>>
>> -------------------------------------------------------------------------------------------
>>
>>
>>
>>
>>
>>
>> > Date: Tue, 6 Oct 2009 09:52:10 -0400
>> > From: gkbr...@mac.com
>> > To: pivot-dev@incubator.apache.org
>> > Subject: Re: font styles,wtkx xsd file, and auto-strech
>> >
>> > >2) I can specify font family in Label, but not every font. when I try
>> using languages other then English, such as Chinese, there only have little
>> rectangels act as place holder instead , could this be solved?
>> >
>> > This sounds like a possible file encoding issue. Are you saving your
>> WTKX files in UTF-8?
>> >
>> > >3) I 'm using pivot for both web and desktop application, are there any
>> way to make elements in pivot auto strech SMARTLY when I resize the desktop
>> window or browser?
>> >
>> > I assume you mean that you want your content to fill the available
>> space? First, you should make sure that your top-level application window is
>> maximized:
>> >
>> > <Window maximized="true">
>> > ...
>> > </Window>
>> >
>> > Th en, you should make sure that your window's content is a layout
>> container that will take advantage of the available space. See the tutorial
>> for examples of how each container works.
>> >
>> > G
>> >
>>
>> ------------------------------
>> Windows Live: Friends get your Flickr, Yelp, and Digg updates when they
>> e-mail 
>> you.<http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010>
>>
>
>

Reply via email to