Well,  I've taken a few steps forward and a few backwards.  See Adobe forums 
http://forums.adobe.com/message/2163425

Valdhor, thanks for the direction to the defaults.css file.  I had no clue it 
was there.  That answered a lot of questions.


  ----- Original Message ----- 
  From: warrenonflex 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, August 07, 2009 10:27 AM
  Subject: [flexcoders] Re: Embedded Fonts


    
  Sorry. I just embedded the image in the email. Not sure how to do it
  otherwise -- I'm new to this group.

  No, I didn't know about the defaults.css file. I just looked and found
  that I too have Verdana specified. Now I'm really lost since thats the
  font I'm embedding.

  I also noticed there is an embedFonts: false line. Wonder what would
  happen if I change that.....

  --- In flexcoders@yahoogroups.com, "valdhor" <valdhorli...@...> wrote:
  >
  > I can't see the example (Maybe it will turn up later).
  >
  > Anyway, have you looked at the defaults.css file? In the globals
  section (At least, on my machine) the fontfamily is set to Verdana.
  >
  >
  > --- In flexcoders@yahoogroups.com, "Warren" warrenonyaho@ wrote:
  > >
  > > I saw those too. Unfortunately I din't know where to go from there.
  I don't really think the default font I'm seeing is _serif. Looks more
  like a _sans font to me (see example)
  > >
  > > And I don't know the heiracrhy for my platform. I was hoping to find
  THE True Type font or swf or something that Flex uses so I could embed
  it and get away from this apparent measurement bug.
  > >
  > >
  > >
  > >
  > >
  > >
  > > ----- Original Message -----
  > > From: valdhor
  > > To: flexcoders@yahoogroups.com
  > > Sent: Friday, August 07, 2009 8:43 AM
  > > Subject: [flexcoders] Re: Embedded Fonts
  > >
  > >
  > > Would these help?
  > >
  > > http://livedocs.adobe.com/flex/3/langref/flash/text/TextFormat.html
  > >
  > > (default) font = "Times New Roman" (default font is Times on Mac OS
  X)
  > >
  > >
  http://www.adobe.com/livedocs/flex/3/langref/flash/text/engine/FontDescr\
  iption.html
  > >
  > > There may be more references. I just did a quick search of the docs.
  > >
  > > HTH
  > >
  > > Steve
  > >
  > > --- In flexcoders@yahoogroups.com, "Warren" <warrenonyaho@> wrote:
  > > >
  > > > Well, so far no luck anywhere.
  > > >
  > > > There are no bugs in the adobe bug system on this. No that
  submitting a bug means it may get solved.....
  > > >
  > > > I can't find any of the workarounds on the web. I've been Googling
  like crazy but nothing is jumping out.
  > > >
  > > > I still can't figure out how to determine what font Flex is using
  if no font's are embedded (e.g. The default font)
  > > >
  > > > If I didn't have to use embedded fonts, I'd be dumping them. Sigh
  > > >
  > > >
  > > > ----- Original Message -----
  > > > From: ag_rcuren
  > > > To: flexcoders@yahoogroups.com
  > > > Sent: Thursday, August 06, 2009 8:40 AM
  > > > Subject: [flexcoders] Re: Flex Builder vs Embedded Fonts -
  Partially solved
  > > >
  > > >
  > > > There is a know bug in flex 3 with embedded fonts where they
  display one pixel higher. This make button labels and other things look
  off center. As far as I have seen this affects all embedded fonts and is
  due to the way they are anti aliased. There are a couple work arounds
  out on the web some involve changing the measure code, or simply moving
  the text component down by 1 pixel. But this happens in the compiled swf
  not just inside of Flex builder.
  > > >
  > > > --- In flexcoders@yahoogroups.com, "Warren" <warrenonyaho@> wrote:
  > > > >
  > > > > OK -- after some digging I think I know what's going on. I'm
  embedding Verdana font. I'm thinking the issue is that the vertical
  spacing in the font is different than the default font Flex Builder is
  using. As a result, the measurement routine is off.
  > > > >
  > > > > This feels like a bug to me -- I'll be checking the Adobe bug
  system next. The only way I can figure out how to fix this is to embed
  exactly the same font that Builder is using by default.
  > > > >
  > > > > Can anyone tell me how to determine this?
  > > > >
  > > > >
  > > > > ----- Original Message -----
  > > > > From: warrenonflex
  > > > > To: flexcoders@yahoogroups.com
  > > > > Sent: Wednesday, August 05, 2009 8:38 AM
  > > > > Subject: [flexcoders] Flex Builder vs Embedded Fonts
  > > > >
  > > > >
  > > > > Recently I had the need to embed font's in my Flex 3
  application. I used the CSS code (see below) to embed the fonts and make
  them global. Worked great except Builder went nuts. The Builder display
  doesn't look like the website. Elements are shifted about, text doesn't
  line up properly (for example, radio button text doesn't center on the
  radio icon), etc. It's a mess. I am using Builder version 3.0.2.214193
  > > > >
  > > > > So I have two questions:
  > > > >
  > > > > 1) If I create a swf of the fonts and embed it in flex using the
  swf, will Builder prefer this?
  > > > >
  > > > > 2) What is the default font for Flex or how do I determine what
  it is in my install? If I knew that, I could embed it and hope that
  Builder would stop messing up.
  > > > >
  > > > > 3) What Am I Doing Wrong?
  > > > >
  > > > > Warren Koch
  > > > >
  > > > > /* CSS file */
  > > > >
  > > > > @font-face {
  > > > > font-family: MainFont;
  > > > > src: url("assets/fonts/verdana.TTF");
  > > > > unicode-range: U+0020-U+007E;
  > > > > advancedAntiAliasing: true;
  > > > > }
  > > > >
  > > > > @font-face {
  > > > > font-family: MainFont;
  > > > > src: url("assets/fonts/verdanab.TTF");
  > > > > unicode-range: U+0020-U+007E;
  > > > > advancedAntiAliasing: true;
  > > > > fontWeight: bold;
  > > > > }
  > > > >
  > > > > @font-face {
  > > > > font-family: MainFont;
  > > > > src: url("assets/fonts/verdanai.TTF");
  > > > > unicode-range: U+0020-U+007E;
  > > > > advancedAntiAliasing: true;
  > > > > fontStyle: italic;
  > > > > }
  > > > >
  > > > > @font-face {
  > > > > font-family: MainFont;
  > > > > src: url("assets/fonts/verdanaz.TTF");
  > > > > unicode-range: U+0020-U+007E;
  > > > > advancedAntiAliasing: true;
  > > > > fontWeight: bold;
  > > > > fontStyle: italic;
  > > > > }
  > > > >
  > > > > global {
  > > > > font-family: MainFont;
  > > > > }
  > > > >
  > > >
  > >
  >



  

Reply via email to