google / google/fonts

What are the specs for the `text` (URL) parameter?

Open
#5,951 0 comments 0 reactions 0 assignees View on GitHub
-- Needs Eng team opinion I API / Website / Platform
Dominant language
HTML
Stars
20.5k
Forks
2.9k
Avg merge
1d 21h
Merged PRs (30d)
95

Description

I need to be sure about what are the limits and conditions for the `text` parameter value to work properly. I couldn't find any documentation but (I think) I figured it out by reverse engineering it.

How it seems to work:

- Characters get reduced avoiding repetition.
- Characters get sorted.
- Characters are *more than zero* and *less than or equal to 800* in total.

If we pass more than 800 unique characters or no characters, the `text` parameter will be ignored and the default CSS will be returned (instead of the specific CSS).

1. Are these assumptions right?
2. Is there something else we should know?

Thanks in advance 😃

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.