title: FLEX :: Embed DateField Font
body: <p><strong>TLDR;</strong></p>
  
  <p>How do you embed a font in flex for a DateField?
  <br><br><br>
  <strong>Question:</strong></p>
  
  <p>I have a Flex program which is using a <code>&lt;mx:DateField&gt;</code>. The environment it was created for has been switched over to using thin clients.</p>
  
  <p>As a result, I now have to embed all the fonts within the application, otherwise all characters are replaced with &#9950; <em>(Note: I couldn't find the exact symbol, but its a null character)</em>.</p>
  
  <p>This is what the calendar looks like <strong>without</strong> the embed code <strong>outside</strong> of a thin client.</p>
  
  <p><img src="https://i.stack.imgur.com/0uRbS.jpg" alt="Before embedded font">
  <br><br>
  <strong>Applciation.mxml</strong></p>
  
  <pre><code>@font-face{
      src: url("/Library/Fonts/Arial.ttf");
      fontFamily: Arial;
      embedAsCFF:true; 
  }
  </code></pre>
  
  <p>This <strong>fixes</strong> every other font. Except the <code>&lt;mx:DateField&gt;</code>.
  <br><br>
  <img src="https://i.stack.imgur.com/mwx9z.jpg" alt="After font is embedded">
  <br><br>
  This occurs no matter what font is embedded, even when <strong>outside</strong> the thin client.
  <br>
  So I'm slightly lost on how to fix this issue. The fonts have to be embedded in order for the calendar to become readable, but this breaks the calendar.</p>
  
  <p>Cheers and thanks for the help.</p>