Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I access a specific font face contained within a TTF font file?

Explorer ,
May 15, 2013 May 15, 2013

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.

TOPICS
ActionScript
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
May 16, 2013 May 16, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 16, 2013 May 16, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
May 16, 2013 May 16, 2013
LATEST

Use this converter to convert ttc to ttf

My project is in Flex

For Flexspecific questions try :

http://forums.adobe.com/community/flex

http://forums.adobe.com/community/flash_builder

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines