Sign inSign up

drichner/fontcustom

By drichner

•Updated almost 11 years ago

fontcustom as a docker container

Image
1

2.9K

drichner/fontcustom repository overview

⁠FontCustom in docker container!

FontCustom is useful to generate glyph fonts for use for e.g. in twitter bootstrap

Read more about FontCustom⁠

To assemble your own glyph font take a look at existing glyphs at The NounProject⁠

⁠How to run?

Default docker run drichner/fontcustom shows fontcustom help information.

I recommend using the script below because the local file location needs to be mapped to specific mounts in the container.

Helper script to run it in an environment like boot2docker⁠ or in coreos⁠ :

#!/bin/bash

docker run -v ${PWD}:/project  drichner/fontcustom $@

if you are in your project directory you can execute ./fontcustom compile -n iconname -h ./vectors

This container expects the local project in the following layout:

.
|-projectdir/  will contain generated files
       |-vectors/    contains vector files

⁠Usage

  1. create a projectdir anywhere on your drive: mkdir -p myproject/vectors
  2. copy some vectors into you vectors dir: cp /tmp/*svg myproject/vectors
  3. change into your project dir: cd myproject`
  4. Initialize the project YAML: ./fontcustom config ./vectors
  5. generate your icons: `./fontcustom -n test -h ./vectors'

This will result in a "test" directory containig your brad new icon file along with a preview page. Instructions on how to use them can be found on fontcustom's website⁠

Tag summary

Content type

Image

Digest

sha256:73e956c87…

Size

151.1 MB

Last updated

almost 11 years ago

docker pull drichner/fontcustom