smilingpoplar / font-extractor

extract a subset of ttf font

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Font-Extractor for iPhone Apps

A script to:

  1. extract unique chars from Localizable.strings or any text file
  2. extract a font subset using font-optimizer
  3. set its font family as the outputfile name

Usage:

./font-extractor.py [stringsfile|textfile] [inputfile.ttf] [outputfile.ttf]

Then you can add the custom font to your app

XXX: If you use xcode for editing, verify the .strings content in Source Code mode (find the file in Project Navigator: Right Click->Open As->Source Code).

About

extract a subset of ttf font


Languages

Language:Perl 98.5%Language:Prolog 0.9%Language:Python 0.5%