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

Add script to generate TTF font #608

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rfbezerra
Copy link

Necessary tool to build TTF font:

The process is:

  1. Convert every single icon from stroke to path using Inkscape and
    Parallel
  2. Compile converted icons to TTF font using FontCustom

If Xvfb is present or informed via XVFB environment variable, it will
suppress Inkscape windows to show up through X11 Virtual Framebuffer

Necessary tool to build TTF font:
  - Inkscape - (https://inkscape.org/)
  - GNU Parallel - (https://www.gnu.org/software/parallel/)
  - FontCustom - (https://github.com/FontCustom/fontcustom)
  - Xvfb - optional, but highly recommended

The process is:
1. Convert every single icon from stroke to path using Inkscape and
Parallel
2. Compile converted icons to TTF font using FontCustom

If Xvfb is present or informed via XVFB environment variable, it will
suppress Inkscape windows to show up through X11 Virtual Framebuffer
@codecov
Copy link

codecov bot commented May 29, 2019

Codecov Report

Merging #608 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #608   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           5      5           
  Lines          34     34           
  Branches        3      3           
=====================================
  Hits           34     34

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a991dd...bc30407. Read the comment docs.

This was referenced May 29, 2019
@tomasdev
Copy link

Can we please get this one merged? <3

@tomasdev
Copy link

@rfbezerra could you please add instructions onto how to install the dependencies: parallel and fontcustom ?

@rfbezerra
Copy link
Author

I made a docker image to simplicate necessary steps to build a TTF font.
If u want to check, it is this project svg-to-ttf.
With that, its simple to build any ttf font from svg glyphs, e.g.:

docker run --rm -v "${PWD}":/fonts rfbezerra/svg-to-ttf -i ./icons -n Feather -u $(id -u)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants