Skip to content

chriscz/flaticon-latex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Script that takes a Flaticon font package, extracts the names of all glyphs from the CSS file included by Flaticon and generates a LaTeX source file with commands for each glyph.

Example

See the snippet.tex file for how this was produced.

Presentation Overview

Quick Intro

  1. create and download a font package from Flaticon.
  2. unzip the font directory into your latex project, say to the font/ directory
  3. cd into your project directory
  4. execute: python process-fonts.py -b fonts/ > flaticon.tex
  5. you may need to edit the source file to change the location of the flaticon font file.
  6. you should be using XeTeX or LuaTeX as your LaTeX compiler.
  7. enjoy!

Name Mappings

  1. All -'s are removed from names
  2. All digits are mapped as follows:
   1 -> q
   2 -> w
   3 -> e
   4 -> r
   5 -> t
   6 -> y
   7 -> u
   8 -> i
   9 -> o
   0 -> p
  1. this uses the top row of a qwerty keyboard, which makes translation from digits to letters fairly obvious.
  2. for example, if the glyph name is big-cat44 then the name would be translated to bigcatrr.

Example

A small example can be found under the example/ directory. It contains some useful font definitions.

AWK Script

This project also contains the original translation AWK script. The script is not maintained, and may be removed in the future.

About

Creates symbol definitions for a flaticon.com font package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published