Code Monkey home page Code Monkey logo

fonts's People

Contributors

andrasbacsai avatar daanschenkel avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fonts's Issues

[bug] 500 error for special italic convention: "ital@0;1"

When generating <link>s for this font, you get a syntax convention that's new to me: "ital@0;1". 🤷‍♂️ Seems to fail on Cool's server.

google's:
https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap

cool's:
https://api.fonts.coollabs.io/css2?family=DM+Serif+Display:ital@0;1&display=swap

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

Font API down?

Hello,

Not sure what is happening, but it appears that any font other than Roboto is not served from the API. A few days ago, everything was working nicely, but today I noticed the fonts were not loading and visiting the links results in a 404.

https://api.fonts.coollabs.io/css2?family=Roboto works, but not https://api.fonts.coollabs.io/css2?family=Merriweather or any other font I can think of.

In any case, thank you for providing this privacy respecting alternative for fonts. 🙂

Warning when loading font

Hi!

I got these warning when replacing fonts.googleapis.com with api.fonts.coollabs.io:

image

I am using it like this:
image

Tutorial?

I feel stupid but, how exactly do I do this?

I've read the how to use but I still don't know.

This isn't fully related to this, but Ideally I wanted to block all remote fonts on all websites and have my "locally hosted" (google) fonts take over, but I'm not sure if that's possible? I'm not sure how to "locally host" fonts. If that isn't possible, I would like to set this up instead.

Can someone tell me if I even have the right way of thinking towards this stuff? Thanks.

in my hosts file

Very cool! I like your thinking. All your documentation talks about when I am building a site how I can use Coollabs fonts instead of google's which is great.

Something else I would like to do is put an IP address in my hosts file for google fonts:

w.x.y.z fonts.googleapis.com
w.x.y.z fonts.gstatic.com

Is this possible? If yes, what IP address can be used?

Latin-ext/Polish characters missing

Hi!
I'm encountering a problem that when I'm using a font from Coollabs Fonts (exactly Prompt font), I'm missing Polish characters. I do not have this issue when using G Fonts.

Exact import URL:

@import url("https://api.fonts.coollabs.io/css2?family=Prompt:wght@400;500;600&family=Ubuntu:wght@500;700&display=swap");

And the results:
When using Coolify Fonts:
image
When using Google Fonts:
image

[Bug]: Accessing Material Symbols causes 500 error

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?

Bug in some multiple requests

First of all. Your project is fantastic and very useful.
I'm trying to use it in our Picostrap Theme
There is a lot of GDPR compliance concern regarding usage of Google Fonts on the web.
Your solution is really clever and so much easier to implement, compared to locally hosting the fonts.

Tinkering with your service I think I've found a bug.
Some requests dealing with multiple fonts, when not including weights, apparently fail.

One example:
https://api.fonts.coollabs.io/css2?family=Playfair+Display&family=Josefin+Sans&display=swap

Returns Playfair Display (correctly) and Montserrat(?)

To compare, the corresponding Google URL,
https://fonts.googleapis.com/css2?family=Playfair+Display&family=Josefin+Sans&display=swap
works as expected.

Thanks so much again for your project, and for your time looking into this.

api.fonts.coollabs.io (hungarumlauts issue)

Szia András,

először is big thx ezért a googlefont alternatíváért!

Ami miatt írok, az az, hogy a head-ben kicserélt cdn-url esetén a font-ot betölti ugyan, de a hosszú ő/ű betűk helyén a default font jelenik meg (az eredeti GoogleFont-ban szerepelnek ezek a karakterek).

A kérdésem annyi csak, hogy ez egy limitáció (fizikailag egy más font-file kerül betöltésre), vagy egyszerűen én csinálok valamit rosszul.

Előre is köszi a választ,
üdv

Tamás

[q&a] self-hosting questions

  1. Would you recommend self-hosting this server on a VPS?
  2. Would self-hosting from the same server as the website that consumes the font be a speed benefit? What if both Cool Fonts and the website that consumes it were hosted on the same Coolify instance?
  3. Am I correct in assuming that, to self-host this, I could pull it down to my own Gitlab and deploy it from there via my Coolify instance?

Regardless - love this project! I was looking for something like this exactly when you were writing it, it seems. :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.