-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
No enough space between numbers - for style=for-the-badge #3613
Comments
Hi, thanks for the report. The problem is not just numbers, also letters, e.g.
It seems like probably one of the issues is that we are displaying bold letters while computing the width using narrower letters. Though something else is causing the letters on the left to be squashed.
Hmm, maybe we are measuring the lowercase letters…
Is the font size different, too? |
Use uppercase spacing is not the same https://img.shields.io/badge/eslint-airbnb-ff5a5f.svg?style=for-the-badge&logo=airbnb https://img.shields.io/badge/ESLint-AirBnb-ff5a5f.svg?style=for-the-badge&logo=airbnb Is it possible to provide a parameter to set the spacing? |
How can I specify those capital letters for VS Code marketplace APIs and packagist? https://img.shields.io/packagist/dt/thamaraiselvam/mysql-import.svg?style=for-the-badge |
Yea, that's definitely a bug we should fix. This code is in flight as part of #2428, maybe it can be tackled there. In the meantime you can set |
It's strange that this makes a difference, Maybe the measurements are being done before this step: shields/gh-badges/lib/make-badge.js Lines 147 to 149 in 98f380b
|
Found the problem: This PR changed the text computation to measure shields/gh-badges/lib/make-badge.js Lines 147 to 149 in 98f380b
To use left , right .
|
There is not enough space between these numbers so hard to read.
It happens when use
style=for-the-badge
The text was updated successfully, but these errors were encountered: