Skip to main content
Participant
May 11, 2023
Question

Trying to use a font with Web Projects and it won't show up

  • May 11, 2023
  • 2 replies
  • 424 views

While trying to use Sweet-Sans-Pro on a website I used https://use.typekit.net/jfa0afd.css as the call to get the code. The link was provided through the Web Project.

@11220649-face {

  font-family:"sweet-sans-pro";
src:url("https://use.typekit.net/af/48b521/00000000000000007735c634/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n9&v=3") format("woff2"),url("https://use.typekit.net/af/48b521/00000000000000007735c634/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n9&v=3") format("woff"),url("https://use.typekit.net/af/48b521/00000000000000007735c634/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n9&v=3") format("opentype");

 

I included this in my sites CSS and then referenced it in the H1 tag

h1 {
  font-family:'sweet-sans-pro';
  font-size:30px;
}

 

But the font doesn't populate.

Am I missing something? I have another font on the site that I'm including in the same exact way and that is functioning correctly.

This topic has been closed for replies.

2 replies

Legend
May 12, 2023

It's probably just that you didn't put it in the post, but your CSS code is missing at least 3 lines. You don't get an error message in a web browser for broken CSS.

Participant
May 16, 2023

I'm not sure what 3 lines you are reffering to. But I did the same with a different font and it works properly, loads up on multiple devices without any issues. Meanwhile Sweet Sans Pro doesn't function. 

It will either default to use the system font or will completely use a different font.

Participant
May 11, 2023

Is there a possibility that the font is somehow broken on the Adobe site? I can use it through Illustrator but doesn't come up when used on web.

Participant
May 16, 2023

I would also like to add, whenever I look up the font using the TypeKit link it 404s, nothing comes up.
https://fonts.adobe.com/eulas/00000000000000007735c634?ref=tk.com