Skip to main content
Participant
Jul 15, 2025 4:58 PM UTC
Question

Linked Adobe Font to Cargo

I am trying to link an adobe font to my cargo site. I follow the video guide by cargo and step by step by adobe but the embed code isnt generating correctly for any font I select and therefore wont connect properly. This is the code that is generated:

 

<script>
  (function(d) {
    var config = {
      kitId: 'xyl4psp',
      scriptTimeout: 3000,
      async: true
    },
    h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
  })(document);
</script> 

 

Does anyone know how to fix this?

    1 reply

    Tarun Saini
    Community Manager
    Community Manager
    Jul 16, 2025 3:48 PM UTC

    Hi @Nancy22962987njuq,

     

    Welcome to the community! We're sorry for the delay. I'd like to inform you that this is the correct embed code for your project. Since your kit includes Chinese, Japanese, or Korean (CJK) fonts, it needs to be loaded using the JavaScript embed code — this is expected behavior.

     

    You can learn more about it here: Why CJK fonts use JavaScript embedding

     

    Additionally, we recommend checking with Cargo support to confirm whether they fully support CCJK font projects from Adobe Fonts, as this may impact how the fonts render on your site.

     

    Regards,

    Tarun

    Translate