typekit / webfontloader

Web Font Loader gives you added control when using linked fonts via @font-face.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hardcoding of encoded pipe appears to be causing issues with multiple families with specific weights

cam424 opened this issue · comments

I'm specifically utilizing Nuxt's webfontloader module; however I believe the issue is being caused by the code here.

My original ticket is here.:
Url I expect:
https://fonts.googleapis.com/css?family=Lato:400,700|Frank+Ruhl+Libre:400,700

What I'm getting:
https://fonts.googleapis.com/css?family=Lato:400,700%7CFrank+Ruhl+Libre:400,700

What's happening:
This result is loading in the fonts, however the weights aren't available for styling my ui. Not sure if there's something with my configuration or if this is a bug.
...

It appears that the encoding for the pipe is hardcoded in this file, on line 65. I'm wondering if this is what's causing the issue.

Also, why is this hardcoded and not utilizing encodeURI()?

Thanks!