I’m not an expert in Asian fonts, but my understanding is that the TextLine 
font rendering, regardless of language, is trying to be more accurate in terms 
of proportions of character details, and attempts to use anti-aliasing and 
half-pixels to do it.  Some folks think the old way looks better because it 
distorts the character details to fit things on pixel boundaries.  But others 
prefer the new way.

If you look at the screenshot in your original post you will see the size and 
shape of the “circular” portions of many characters is more elongated in the 
MX/old way.  You would have to look at a print version of the font to see 
whether that shape is accurate or not.  My guess is that it isn’t because it is 
distorted to fit on pixel boundaries and some people don’t like that because it 
makes the characters look like they do on an old stadium scoreboard.  So it 
seems to be a trade-off, especially at smaller font sizes.




On 4/11/12 1:36 PM, "michael_reg...@dell.com" <michael_reg...@dell.com> wrote:






Can you clarify something then?? I’m learning all of this.? For Korean, 
Simplified Chinese, and Japanese, I’m being told the font (or rendering) of 
characters in MX is cleaner and more readable then the Spark components.? Why 
the change?? Using MX only would be a serious step backwards…


Michael J. Regert


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, April 11, 2012 3:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fonts and localization



You would have to use MX components everywhere (and not need right-to-left 
language support)


On 4/11/12 9:43 AM, "michael_reg...@dell.com" <michael_reg...@dell.com> wrote:






Thanks.? I’m being told by our Korean QA that the default font that is used in 
the MS Advanced Data Grid is much cleaner than what is used in the Spark 
controls.? How do I change this to use the same font as the grid across my 
whole app?


Michael J. Regert

Please consider the environment before printing this email.

Confidentiality Notice | This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential or 
proprietary information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended recipient, immediately 
contact the sender by reply e-mail and destroy all copies of the original 
message.



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, April 11, 2012 11:38 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Fonts and localization



MX uses TextField, Spark defaults to TextLine which will render a bit 
differently.


On 4/11/12 8:26 AM, "michael_reg...@dell.com" <michael_reg...@dell.com> wrote:






I’m trying to understand what Adobe Flex is doing for Korean (and other 
languages) fonts.  I’m seeing that the font used for a Spark label is different 
than what is used in an MX Advanced Data Grid.  I’m using Adobe Flex 4.0 and 
4.6.

I have the following sample app.  The font used to display the label when run 
is different than the grid, even though I am not defining a font or setting 
anything in a css.  Why?  Screenshot attached (if it comes through in the post).


<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx">
    <fx:Declarations>
           <!-- Place non-visual elements (e.g., services, value objects) here 
-->
    </fx:Declarations>


       <fx:Script>
           <![CDATA[
                     import mx.collections.ArrayCollection;
                     [Bindable]
                     private var testString:String = "invalidType = 잘못된 유형입니다. 
XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.";

                     [Bindable]
                     private var testData:ArrayCollection = new 
ArrayCollection([
                           {msg:"invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 
포함한 XMLList여야 합니다."}
                     ]);
              ]]>
       </fx:Script>
    <s:VGroup width="100%" height="100%" gap="10" paddingTop="20" 
paddingBottom="20" paddingLeft="20" paddingRight="20">
           <s:Label width="100%" text="{testString}"/>

              <mx:AdvancedDataGrid width="100%" height="100%" 
dataProvider="{testData}">
                     <mx:columns>
                        <mx:AdvancedDataGridColumn dataField="msg"/>
                  </mx:columns>
           </mx:AdvancedDataGrid>
       </s:VGroup>


</s:Application>




[cid:3417081584_105737322]




Michael




--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui

<<inline: image.png>>

Reply via email to