Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
executable file 59 lines (49 sloc) 1.53 KB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
This patch replaces the dotted zero with a regular zero without dot.
You will need Python and the Python FontTools
from <> to run this.
from fontTools.ttLib import TTFont
have_fonttools = True
have_fonttools = False
from os.path import join
files = [
#join(r"Web Fonts", "SudoWeb.woff"),
#join(r"Web Fonts", "SudoWeb-Italic.woff"),
#join(r"Web Fonts", "SudoWeb-Bold.woff"),
#join(r"Web Fonts", "SudoWeb-BoldItalic.woff"),
def patch_cmap(font):
#print " Patching CMAP ..."
c = font["cmap"]
for table in c.tables:
#print " Patching format %i subtable ..." % table.format,
if 0x30 in table.cmap:
table.cmap[0x30] = ""
#print "OK."
#print "glyph not found."
def patch(filepath):
print "Patching '%s' ..." % filepath,
base, ext = filepath.rsplit(".", 1)
font = TTFont(filepath)
patch_cmap(font)"%s_patch.%s" % (base, ext))
print "OK"
if have_fonttools:
for f in files:
print "\nThe web fonts were not patched. For the web fonts, please activate the OpenType 'zero' feature in your CSS:"
print ' font-feature-settings: "zero";'
print "Please install the Python FontTools from <> first."