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

web project how to use font family-display?

Community Beginner ,
Feb 24, 2021 Feb 24, 2021

Hi, i'm using Adobe Fonts in my webproject, where i saved Garamond Premier Pro, Garamond Premier Pro Caption,  and Garamond Premier Pro Display.

I've copied the exact css from the adobe fonts website and inserted them in the different parts I want them (p {font-family: garamond-premier-pro-caption; font-style: normal; font-weight: 400;}, h1 {font-family: garamond-premier-pro; font-style: normal; font-weight: 400;}, etc.) but the only font showing is the Garamond Premier Pro. 

What am i doing wrong? Advice is very welcome 😉

804
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

correct answers 1 Correct answer

Community Beginner , Mar 04, 2021 Mar 04, 2021

Hi Nancy,

I figured it out in the end, it was in the code used by the developer. He insisted on using <script> + .js instead of <style> + .css

Thank you nonetheless for taking the time to reply!

Translate
Community Expert ,
Feb 27, 2021 Feb 27, 2021

Can you post the URL to your problem page online so we can see it?

 

Nancy O'Shea— Product User, Community Expert & Moderator
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
Community Beginner ,
Mar 04, 2021 Mar 04, 2021

Hi Nancy,

I figured it out in the end, it was in the code used by the developer. He insisted on using <script> + .js instead of <style> + .css

Thank you nonetheless for taking the time to reply!

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
Community Expert ,
Mar 05, 2021 Mar 05, 2021
LATEST

Yes, code errors can make a lot of difference.  Glad you got it all sorted. 🙂

 

Nancy O'Shea— Product User, Community Expert & Moderator
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