Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Accessing Material Symbols causes 500 error #13

Open
WillsterJohnson opened this issue May 20, 2023 · 1 comment
Open

[Bug]: Accessing Material Symbols causes 500 error #13

WillsterJohnson opened this issue May 20, 2023 · 1 comment

Comments

@WillsterJohnson
Copy link

Overview

Google Fonts' Icons page links to their Developer Guide which has a section on web usage which states that the following URL is how users should access Material Symbols;

https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined

/* fallback */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/materialsymbolsoutlined/v110/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2) format('woff2');
}

.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-moz-font-feature-settings: 'liga';
-moz-osx-font-smoothing: grayscale;
}

According to fonts.coollabs.io:

Change fonts.googleapis.com to api.fonts.coollabs.io In your head tags. That's all!

However when doing so:

https://api.fonts.coollabs.io/css2?family=Material+Symbols+Outlined

{"statusCode":500,"message":"undefined is not iterable (cannot read property Symbol(Symbol.iterator))"}
  

Expected Behavior

Expected to see the same results from fonts.coollabs as fonts.googleapis

Actual Behavior

500 error - tried to iterate undefined


This isn't resolved changing /css2 to /icons (it would be odd, but nice, if it was). Are Material Symbols supported/possible to support?

@andrasbacsai
Copy link
Member

Yeah, I will add these.

(link and link for future me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants