Skip to content
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

Run locally using Docker #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM php:8.2-cli-alpine

RUN apk add --no-cache git

RUN git clone https://github.com/impallari/Font-Testing-Page.git /usr/src/font-testing

WORKDIR /usr/src/font-testing

CMD [ "php", "-S", "0.0.0.0:8080" ]
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Font Testing Page
=================
# Font Testing Page

Stable releases available for use at http://www.impallari.com/testing

Expand All @@ -26,7 +25,7 @@ Below the drop area you see some buttons to select different layouts:
- Latin: Diacritics for 103 Latin languages, pangrams and text samples.
- And many many more...

Notes:
## Notes

- Requires Firefox or Chrome
- 100% safe: Your fonts are only stored in your own browser (using `localStorage`) and **nothing gets uploaded to any server**
Expand All @@ -36,7 +35,7 @@ Secret tips for the "Filter text" tool:
- When working on text fonts: Set the size to 18px or lower, and you will get nice blocks at all text sizes at the same time.
- When working on display fonts: Set the size to 200 and you get a small cascade, set it to 300px and you get a full cascade (Great for deciding on your font's spacing/fitting).

Developers:
## Developers

To download the latest version and use it locally:

Expand All @@ -46,7 +45,17 @@ To download the latest version and use it locally:

Then visit <http://127.0.0.1:8080> to see your local version of the tool.

Thanks:
### Docker

For local development and testing:

```bash
docker build -t font-testing-page Docker/

docker run --rm -p 8080:8080 --name font-tester font-testing-page
```

## Thanks

- Inspired by Jonathan Kew's [OpenType Playground](http://people.mozilla.com/~jkew/opentype-feature-playground.html) made for Mozilla and [FontDrag](https://github.com/ryanseddon/font-dragr)
- Initiated by [Dave Crossland](http://understandingfonts.com)
Expand All @@ -68,7 +77,7 @@ Thanks:
- Malayan Version by [Santhosh Thottingal](http://thottingal.in/)
- And many more people that helped in one way or another (If I've forgotten to include your name, just let me know and I will add it).

License:
## License

Code is available under the MIT License, see [LICENSE.md](LICENSE.md) for full details

Expand Down