This project provides a micro service responder when passed language tag will return information on a possible font to use for the orthography for that language tag.
The service has the following endpoints available:
Endpoint | Description |
---|---|
lang/langtag | Returns a json object of the font for the langtag |
status/ | Returns a simple version as a JSON object |
docs/ | FastAPI OpenAPI base documentation (Swagger) |
redoc/ | Prettier OpenAPI base documentation (ReDoc) |
openapi.json | OpenAPI schema in JSON |
The API is built on top of FastAPI and runs using uvicorn.
To run:
python3 lib/findafont/api.py
There are standalone testing programs in the test/ directory.