googlefonts / gfregression

Test local fonts against fonts host on fonts.google.com
Apache License 2.0
14 stars 10 forks source link

[models] Support fonts with filenames that do not specify a style. #17

Closed m4rc1e closed 6 years ago

m4rc1e commented 6 years ago

Fixes #15

@madig this should roll into production after lunch.

I'm more than happy to get you up and running on your own local version if you'd like?

madig commented 6 years ago

Yes! I was about to file an issue asking how to start the damn thing locally, but then I found docker-rebuild.sh and now I'm fluffing about.

I have some specific workflow involving a GitLab CI pipeline in mind, but that's after I explored a bit more. I suppose you'll be a TypoLabs?

m4rc1e commented 6 years ago

@madig Yeah, I'll be at TypoLabs.

A "quick" way to get this off the ground

# 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 n paste returned command)

# build and run using docker-compose (make sure you have your Python virtualenv enabled and you're in the parent dir
docker-compose up

Building the imgs and containers may take a while

m4rc1e commented 6 years ago

@madig if you have no objections to this pr, I'll give it a merge and get it online asap.

madig commented 6 years ago

No objections :) Might be better to one day extract the family and style name from the font itself, but it'll do for now.