GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dcecile/bitfontmake: Flask + UFO service: compile raster images to vectorized bitmap fonts

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
__init__.py
__init__.py
 
 
codepoints.py
codepoints.py
 
 
create_test_image.py
create_test_image.py
 
 
input.py
input.py
 
 
objects.py
objects.py
 
 
output.py
output.py
 
 
rasterspec.md
rasterspec.md
 
 
requirements.txt
requirements.txt
 
 
runtime.txt
runtime.txt
 
 
service.py
service.py
 
 
test.gif
test.gif
 
 
test.html
test.html
 
 
test.png
test.png
 
 
test.py
test.py
 
 
transforms.py
transforms.py
 
 
utils.py
utils.py
 
 

Repository files navigation

bitfontmake

Compile raster images to vectorized bitmap fonts

Usage

Follow the directions in rasterspec.md to construct a raster image that bitfontmake can convert into a font.

Then upload your GIF, PNG, or BMP file to the bitfontmake web service. Here's how to do that via cURL, using [my-new-file] as the file to upload:

curl -v -O -J --data-binary @[my-new-file] \
  https://bitfontmake.herokuapp.com/compile-to-ttf

The web service will respond by sending the TTF file for your font.

Developing

Prerequisites

You'll need to install Python 3.6 (to run the font compiler) and venv (to fetch local dependencies).

From a terminal inside a clone of this project, first create a new virtual environment:

python3.6 -m venv env

Then activate that environment:

source env/bin/activate

And finally, download the dependencies:

pip install -r requirements.txt

Workflow

Here are some ways to test changes:

  • python test.py (to run the test compilation)
  • python service.py (to run the Flask web server)
  • heroku local (to run the Flask web server in a Heroku-like environment)

Style

Try to follow the conventions in PEP 8.

Updating dependencies

After adding dependencies with pip install, check the output of pip freeze:

pip freeze -r requirements.txt | grep -v pkg-resources

Manually copy any newly added packages to requirements.txt.

License

This project is released under the MIT License (see LICENSE.md for details).

About

Flask + UFO service: compile raster images to vectorized bitmap fonts

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.