Note that there are some explanatory texts on larger screens.

plurals
  1. POFlex 4 TLF and embedded font loaded as a module not working
    text
    copied!<p>this problem is really killing me so any help will be really great :)</p> <p>I have a flex 4 application that loads a flex module. In this module I 'register' a bunch of fonts. I have a Spark textArea in this module that wants to use one of these fonts via its text flow which is created using:</p> <pre><code> textArea.textFlow = TextConverter.importToFlow(htmlText, TextConverter.TEXT_FIELD_HTML_FORMAT); </code></pre> <p>I 'register' the font using:</p> <pre><code> [Embed(source='/assets/fonts/book/HogarthScrD-Regular.ttf', embedAsCFF="true",fontName='HogarthScrD')] public static var _HogarthScrD:Class; </code></pre> <p>Where the html text is:</p> <pre><code> var htmlText:String = "&lt;TEXTFORMAT LEADING=&quot;2&quot;>&lt;P ALIGN=&quot;CENTER&quot;>&lt;FONT FACE=&quot;HogarthScrD&quot; SIZE=&quot;19&quot; COLOR=&quot;#000000&quot; LETTERSPACING=&quot;0&quot; KERNING=&quot;0&quot;>&lt;B>My html Text&lt;/B>&lt;/FONT>&lt;/P>&lt;/TEXTFORMAT>"; </code></pre> <p>I know the font 'HogarthScrD' exists as a debug on to the array of Font.enumerateFonts(); show me that 'HogarthScrD' is one of the element and is of type cff</p> <p>I have read loads of documents around this and have failed to find a solution :( I read this artical: <a href="http://blogs.adobe.com/aharui/2010/03/flex_and_embedded_fonts.html" rel="nofollow">http://blogs.adobe.com/aharui/2010/03/flex_and_embedded_fonts.html</a> tho I understand what it is saying I am not sure i know how to implement this... Even if someone can point me to the example will be useful!</p> <p>I was thinking it was because it was importing from HTML text, so I just typed some text and used the emebedded font that doesn't work also.</p> <p>Thanks a million in advance!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload