dfrankland / font-family-merger

Merge font variations together to make a big, happy, font family!
27 stars 4 forks source link

Font Family Merger

Merge font variations together to make a big, happy, font family!

Have you ever gotten a brand new, shiny, awesome font, but were taken agahst once it was loaded into your editing program? Your precious new font was seperated by variations in a list of endless other fonts! This really sucks, and there seems to be next to nothing out there for solutions to this (I am looking at you FontForge, GlyphsApp, etc.) — until now!

UPDATE: Font Family Merger will also try to fix your font files' names if they are broken too!

Prerequisites

  1. TTF and OTF are the only supported fonts!
  2. Font Family Merger tries to find each of your fonts names like "Font FontVariation" and split them into an array following the regex you provide. If no names are found then Font Family Merger will throw an exception.

  3. Font Family Merger requires you to have python and also BeautifulSoup, lxml, plus fontTools python modules installed as a prereqisite. For more information on that see below:

How to use this bad boy

  1. Backup the fonts that you want to merge. If something goes wrong you might lose everything ;(

  2. Drop font_family_merger.py in the directory that contains only the font you want to merge

  3. In terminal cd to your directory containing your font files and font_family_merger.py

  4. Run the command python font_family_merger.py

  5. Wait to be prompted for the regex to split the names inside your fonts

  6. Watch the magic happen!