D
D
Dmitry Sergeev2012-03-21 14:45:56
css
Dmitry Sergeev, 2012-03-21 14:45:56

How to make pictures for a sprite from a font?

I read a topic about Font Awesome and decided to make a set of icons in the form of a sprite out of it. And got into a stupor. Is it possible to distill the font into brushes for photoshop?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
avalak, 2012-03-21
@avalak


I can't advise anything about brushes, but you can use imagemagick to create a sprite.
symbols.txt - symbols
fontawesome-webfont.ttf - font
Example archive

#!/usr/bin/env bash

convert \
  -size 400x50 \
  -background transparent \
  -font font/fontawesome-webfont.ttf \
  -pointsize 25 \
  -fill black \
  -gravity South \
  label:@text/symbols.txt \
  -flatten out/sprite.png

T
TrueDrago, 2012-03-21
@TrueDrago

If you are for the web, then why not use the ability to include the font in css?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question