Not yet rated
Tags:

Problem

When you use an MX DataGrid in a Spark Application container, some Japanese characters display as small boxes. These boxes represent missing characters. This happens regardless of whether you use an embedded font or a font face with the proper characters.

Solution

The solution is to use FTE (Flash Text Engine) with your MX DataGrid. Specifically, you should use the MXFTETextInput and UIFTETextField classes with your MX text controls, including the MX DataGrid.

Detailed explanation

To use FTE with your MX text-based controls in a Spark Application, you can apply the MXFTEText.css theme. On the command line, use a command similar to this:

mxmlc -theme+=frameworks/projects/spark/MXFTEText.css MyApp.mxml

In Flash Builder, you apply this theme by selecting Project > Properties > Flex Compiler. Then select the "Use Flash Text Engine in MX Components" option.

For complete documentation of this issue, see  http://help.adobe.com/en_US/flex/using/WSda78ed3a750d6b8f-26a13bbf123c441239d-8000.html.


+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes