fonts
Success – I managed to recompile the galleries
Success, I managed to recompile the galleries using Flex 3.2 SDK. See them here and here. The only thing that I still have problems with is embedded fonts in <mx:Linkbar>. Embedded fonts work quite nicely in other elements, but not in <mx:Linkbar>.
Here is the snippet for font embedding from as file -
[Bindable]
[Embed(source='include/fonts/Speedline.ttf',
fontName='GalleryFont',
fontStyle='normal',
fontWeight='normal',
mimeType='application/x-font')]
// You do not use this variable directly. It exists so that
// the compiler will link in the font.
public var embeddedFont:Class;
Here is the snippet of the stylesheet -
.headerLinkBar {
fontFamily: GalleryFont;
fontSize: 18;
fontWeight: normal;
fontStyle: normal;
fontThickness: 0;
colour: #808080;
textRollOverColor: #FFFFFF;
rollOverColor: #262626;
selectionColor: #262626;
separatorColor: #FFFFFF;
}
And here is the snippet from the MXML file -
<mx:LinkBar id="headerLinkBarThumbsView"
styleName="headerLinkBar">
<mx:dataProvider>
<mx:Array>
<mx:String>Arrange</mx:String>
<mx:String>Stack</mx:String>
<mx:String>Randomise</mx:String>
<mx:String>Back</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:LinkBar>
I think I’m coding everything correctly. It worked without a problem in Flex 2. You can see the same font being used on the slide/thumbnail. Perhaps there is a change in behavior in Flex 3. Sooner or later I will get to the bottom of this. In the meantime I have to put up with the default font.
—
Without wax,
yOOrek
