https://github.com/googlefonts/gfregression
Test local fonts against fonts host on fonts.google.com
https://github.com/googlefonts/gfregression
Last synced: about 1 year ago
JSON representation
Test local fonts against fonts host on fonts.google.com
- Host: GitHub
- URL: https://github.com/googlefonts/gfregression
- Owner: googlefonts
- License: apache-2.0
- Created: 2016-10-17T14:15:03.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T22:09:35.000Z (about 2 years ago)
- Last Synced: 2025-05-07T21:06:02.632Z (about 1 year ago)
- Language: Python
- Size: 9.62 MB
- Stars: 14
- Watchers: 11
- Forks: 7
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Google Fonts Regression Tester
Compare local font families against each other, or if a Google Fonts family, again the lastest release hosted on fonts.google.com
Web version can be found [here](http://35.238.63.0/)
# 
**Warning: Error handling and better tests are needed. This webapp should not be treated as a God. It should be used in conjunction with good judgement.**
*"Measure twice, cut once" - English Proverb*
## Installation
### Run from Docker
Create a new docker machine:
docker-machine create gf-regression
Run the machine:
docker-machine start gf-regression
Log into machine:
docker-machine env gf-regression
# Copy and paste the returned text in your shell.
Build and run the container using docker-compose. Make sure you are in the project's root directory.
python2 -m virtualenv venv
# Activate the virtualenv
docker-compose up
Find out where the app is listening:
docker-machine ls
# Copy the _bare_ IP address from the "URL" column and paste it into your browser, no port and no tcp://!
### Run app directly
To run GF Regression locally, you'll need a [Google Fonts API key](https://developers.google.com/fonts/).
This must be stored in a json file located at `/app/secrets.json` with the following structure:
{
"GF_API_KEY": "YOUR-GF-API-KEY"
}