Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
CesareRocchi #1
Problem embedding fonts
Hi,
I followed step by step instruction on font embedding. I use this in my CSS.
@font-face {
src: url("copacetix.ttf");
fontFamily: myFont;
}
I try to apply this font to each button like this (in CSS):
Button{
fontFamily: myFont;
}
but my button gets displayed with "Times New Roman".
Any hint?
-c.
CesareRocchi Guest
-
Embedding Fonts
This seems to be my problem also. I need to produce Press Quality pdf and I have tried doing it as a printer driver directly in my graphics app. I... -
embedding fonts in movie
I need to create a flash movie that has multiple fonts. The problem is I don't want to download all the fonts with the movie every time. I was... -
Fonts not embedding
Just started working in XP, and even though I have certain Fonts in my system, the Distiller (6) doesn't read them in the fonts list. Why is this?... -
embedding fonts...
so im building a flash site and i have certain fonts that I use, but I realized that on most computers they wont see these fonts, I was wondering... -
Embedding Fonts (k)
I'm trying to embed a couple of fonts in Director. I'm using Mac OS 10.2.6 and Director MX. I've installed the fonts in my system(Macintosh HD >... -
peterd_mm #2
Re: Problem embedding fonts
CesareRocchi,
Two options:
1) Embed the bold font face as well (Button labels are bold by default)
2) Set the Button label's fontWeight style to normal)
Something like:
a)
@font-face {
src: url("copacetix.ttf");
fontFamily: myFont;
fontWeight: bold;
}
or
b)
Button{
fontFamily: myFont;
fontWeight: normal;
}
Hope that helps,
Peter
peterd_mm Guest
-
CesareRocchi #3
Re: Problem embedding fonts
tried both. no way. my buttons are without label and my linkbar shows just '-' separators.
CesareRocchi Guest
-
peterd_mm #4
Re: Problem embedding fonts
How about this?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style>
@font-face {
src: url("copacetix.ttf");
fontFamily: myFont;
}
Button{
fontFamily: myFont;
fontWeight: normal;
fontSize: 18;
}
Label {
fontFamily: myFont;
fontSize: 18;
}
</mx:Style>
<mx:Label text="Copacetix" />
<mx:Button label="Copa! regular" />
</mx:Application>
peterd_mm Guest
-
Danjor23 #5
Re: Problem embedding fonts
Hi,
I may have a related problem on font embedding
I reduced my code to the attached test.
In this font Futura applies on the label and button. The linkbar items
disappears
If I comment CSS Button definition, linkBar items are visible but font Futura
is not applied on them, as it is applied correctly on the independant Label.
After all test, I couldn't have my embedded font applied to the LinkBar. I'm
missing something ?
Would appreciate a LOT any help on this. I'm lost :)
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Style>
LinkBar{
embedFonts: true;
fontFamily: Futura;
fontWeight: normal;
fontSize:14;
color:#FFFFFF;
}
Label {
fontFamily: Futura;
fontSize:14;
color:#FFFFFF;
}
Button{
fontFamily: Futura;
fontSize:12;
fontWeight: normal;
color:#FFFFFF;
}
@font-face {
src:url("assets/Fu.ttf");
fontWeight: normal;
fontFamily: Futura;
}
</mx:Style>
<mx:VBox>
<mx:LinkBar textAlign="right" direction="vertical" separatorWidth="0"
dataProvider="{dp}"
alpha="0.0" width="100%" horizontalAlign="right" >
</mx:LinkBar>
<mx:Label text="font test three - working">
</mx:Label>
<mx:Button label="button font test">
</mx:Button>
</mx:VBox>
<mx:Array id="dp">
<mx:Object label="font test one - not ok"/>
<mx:Object label="test font two - not ok"/>
</mx:Array>
</mx:Application>
Danjor23 Guest
-
CesareRocchi #6
Re: Problem embedding fonts
I solved. I forgot to specify which glyphs to embed. now it is working, though
I has some problems with Candara font, which froze the Flex builder. Then I
changed to another font, and everything went fine.
CesareRocchi Guest



Reply With Quote

