Note that there are some explanatory texts on larger screens.

plurals
  1. POBug with embedding fonts in Flex - panel's title won't show up
    text
    copied!<p>Good morning,</p> <p>I face a curious bug as I try to set a fontstyle in a mx:Panel object in Flex.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute" title="Test" titleStyleName="titleAssumed" &gt; &lt;mx:Label x="0" y="-5" styleName="othersAssumed" /&gt; &lt;mx:Label x="0" y="16" styleName="othersAssumed"/&gt; </code></pre> <p>The associated CSS file contains the following relevant styles:</p> <pre><code>/* CSS file */ @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/mx"; @font-face{ src: url("ttf\\ControlSign Bold.ttf"); fontFamily: ControlSign; fontWeight: bold; } @font-face{ src: url("ttf\\ControlMono Regular.ttf"); fontFamily: ControlMono; } .titleAssumed { fontFamily: ControlSign; font-weight: bold; font-size: 12; color: #FFFFFF; } .othersAssumed { fontFamily: ControlMono; font-size: 15; color: #ADADAD; } </code></pre> <p>With this configuration, and once I have set the compiler properties in Eclipse for the compiler to use the Flash text engine for MX components, I can see the two labels of the Panel in the correct font and style ; but the Panel's title will not show up. Even if I add the "embedAsCff: false" line to my style .titleAssumed, the title refuses to show up.</p> <p>Any idea about what could be causing the trouble? Thanks !</p> <p>EDIT: syntax error fixed.</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