Copy link to clipboard
Copied
I want to access "Avenir Medium", which is one of 12 faces contained within the font file named "Avenir.ttf".
CSS allows me to specify the font file (src:...), the family name (fontFamily), and the weight (fontWeight).
The file, of course, is the same for every face within the TTF file, so that doesn't help.
The family is Avenir. Am I supposed to use some version of "Avenir Medium" in the fontFamily param? Nothing I've tried has worked.
The weight is Medium, but that is not an option for the CSS param fontWeight, so this does not seem to be the way to do it.
In Photoshop the font is accessed via the Family pull-down (Avenir) and the Syle pull-down (Medium).
I have not found a way to split the TTF file into separate files for each face, though that would seem to be the simplest solution.
Copy link to clipboard
Copied
Usually when embedding a font you have to specify the style/characters.
Right click your library>New Font>Embed the font-face of Avenir you are targeting give it a name, and that is the name you have to use in your TextFormating.
Copy link to clipboard
Copied
Thanks for the reply. Yes, I could go that route to create a SWF that contains the font and access it that way. My project is in Flex and I'm using CSS to define the font styles by pointing to font files. I'd prefer to continue with that approach.
I actually made a mistake in my post. The file I'm working with is Avenir.ttC, not ttF. It is a font collection TTC file.
Copy link to clipboard
Copied
Use this converter to convert ttc to ttf
My project is in Flex
For Flexspecific questions try :
Find more inspiration, events, and resources on the new Adobe Community
Explore Now