<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>SnippetRepoBrowser</title>
    <link>http://snippet.gnstudio.com/snippetrepobrowser/index</link>    
    <description>RSS Feed of SnippetRepoBrowser (Global RSS)</description>    
    <language>en-us</language>
    <pubDate>Thu, 09 Feb 2012 21:52:16 +0100</pubDate>
    <docs>SnippetRepoBrowser/index</docs>
    <generator>SnippetRepoBrowser Feed Generator</generator>
    <item>
      <title><![CDATA[Embedding fonts for Adobe TLF]]></title>
      <link>http://snippet.gnstudio.com/viewtopic/86</link>
      <description><![CDATA[To use embedded fonts with Adobe Text Layout Framework (TLF) you need to switch on the &#39;embedAsCFF&#39; option and use Flex SDK 4.0 to compile the fonts. Please note that the &#39;embedAsCFF&#39; attribute replaced the old &#39;cff&#39; attribute in Flex SDK 4.0. After succesfully embedding the fonts make sure that you set the fontLookup property of the TextFLow to FontLookup.EMBEDDED_CFF.<br />]]><![CDATA[<div class="divcode"><pre lang="actionscript">// Embedding &#39;Anonymous Pro&#39; font family<br />[Embed(source=&#39;/fonts/Anonymous Pro B.ttf&#39;, embedAsCFF=&#39;true&#39;, fontName=&#39;AnonymousPro&#39;, fontWeight=&#39;bold&#39;, fontStyle=&#39;normal&#39;, mimeType=&#39;application/x-font&#39;)] <br />private static var AnonymousProB:Class;<br />	<br />[Embed(source=&#39;/fonts/Anonymous Pro BI.ttf&#39;, embedAsCFF=&#39;true&#39;, fontName=&#39;AnonymousPro&#39;, fontWeight=&#39;bold&#39;, fontStyle=&#39;italic&#39;, mimeType=&#39;application/x-font&#39;)] <br />private static var AnonymousProBI:Class;<br />	<br />[Embed(source=&#39;/fonts/Anonymous Pro I.ttf&#39;, embedAsCFF=&#39;true&#39;, fontName=&#39;AnonymousPro&#39;, fontWeight=&#39;normal&#39;, fontStyle=&#39;italic&#39;, mimeType=&#39;application/x-font&#39;)] <br />private static var AnonymousProI:Class;<br />	<br />[Embed(source=&#39;/fonts/Anonymous Pro.ttf&#39;, embedAsCFF=&#39;true&#39;, fontName=&#39;AnonymousPro&#39;, fontWeight=&#39;normal&#39;, fontStyle=&#39;normal&#39;, mimeType=&#39;application/x-font&#39;)] <br />private static var AnonymousPro:Class;<br /><br />// TextFlow options<br />textFlow.fontLookup = FontLookup.EMBEDDED_CFF;<br />textFlow.cffHinting = CFFHinting.HORIZONTAL_STEM;<br />textFlow.renderingMode = RenderingMode.CFF;</pre></div><br /><br />]]></description>
      <author>ivan.varga</author>
      <pubDate>Fri, 19 Feb 2010 11:56:35 +0100</pubDate>
      <category>Flex 3.x</category>
      <guid>http://snippet.gnstudio.com/viewtopic/86</guid>
   </item>
  </channel>
</rss>
