With embedded fonts, it is never simple.  There are lots of things to be
checked out.

 

1)       The DataGridItemRenderer must be in the same SWF as the
embedded font.

2)       In DataGridColumn.as:saveFontContext, make sure the logic there
thinks there is an embedded font

3)       If so, you should step through UITextFIeld.as:validateNow() for
the renderer to see why it doesn't set embedFonts=true.

 

I'm about to pack it in for the day.  If you post a mini-example I can
try to look at it tomorrow.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Monday, March 31, 2008 10:27 PM
To: [email protected]
Subject: [flexcoders] Re: Embedded fonts in DataGrid

 

Blank,

embedFonts==false on a standard cell 'default dataGridItemRenderer';

how do i set the flag to true?

sorry if its sounds like a simple question...

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> What do you get? Blank, different font?
> 
> 
> 
> Check to make sure the font didn't get reset in the columns or
somewhere
> else along the way. In the debugger, I step through the code that sets
> the embedFonts flag to make sure it is being set properly.
> 
> 
> 
> ________________________________
> 
> From: [email protected] <mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:flexcoders%40yahoogroups.com>
] On
> Behalf Of Bjorn Schultheiss
> Sent: Monday, March 31, 2008 9:36 PM
> To: [email protected] <mailto:flexcoders%40yahoogroups.com> 
> Subject: [flexcoders] Re: Embedded fonts in DataGrid
> 
> 
> 
> I also thought i'd add i've added 
> 
> import mx.controls.dataGridClasses.DataGridItemRenderer;
> 
> private var dgir:DataGridItemRenderer; 
> 
> to my main application, and my css is inside a swc that i'm loading
> via the -theme compiler option.
> 
> Any help would be gratefully appreciated.
> 
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
> , "Bjorn Schultheiss"
> <bjorn.mailinglists@> wrote:
> >
> > Hey my embedded fonts are not appearing in my datagrid.
> > 
> > They work everywhere else except the dataGrid.
> > 
> > Any tips you guys have got to help me get this to work?
> > 
> > 
> > 
> > btw. My datagrid is in a module, loaded by other modules.
> > All modules are loading the fonts fine, except within the datagrid.
> > And I'm not using Runtime CSS.
> >
>

 

Reply via email to