Skip to content

Instantly share code, notes, and snippets.

View impallari's full-sized avatar

Pablo Impallari impallari

View GitHub Profile
@weiweihuanghuang
weiweihuanghuang / Compare Fonts.py
Last active July 27, 2016 06:27
Compare Two Open Fonts – (Should only have two files open have them open to the same master, a new tab will open with all the changed glyphs)
#MenuTitle: Compare Fonts
# -*- coding: utf-8 -*-
__doc__="""
- Compare 2 open files and opens a new tab (in the current font) for each master showing the glyphs that are different between the 2 files.
- A decomposed copy of each different glyph from the other file will also be pasted in the background of each glyph in the current file.
*** WARNING *** This will clear the background in the current font. Uncomment the "doNotCopyToBackground" line to disable it.
"""
@okay-type
okay-type / +version.py
Last active November 30, 2015 20:38
+version
# jackson
# okaytype.com
# v0.3 28 Nov 15
# uses Version Minor to increment font names i.e.:
# Family Name v1
from vanilla import *
import os
from robofab.interface.all.dialogs import GetFolder
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#############
# Zip ufos! #
#############
### Modules
import zipfile
import os
import random
# A4 paper size in mm
paperWidth = 210
paperHeight = 297
# bleed for printing
bleed = 20
# book spine
@mekkablue
mekkablue / Grid Switcher.py
Last active August 29, 2015 14:00
Grid Switcher for Glyphs.app
#MenuTitle: Grid Switcher
# -*- coding: utf-8 -*-
"""Turns Grid on and off."""
import vanilla
import GlyphsApp
class GridOnOff( object ):
def __init__( self ):
currentGridStep = Glyphs.font.gridMain()
@madrobby
madrobby / gist:4161897
Created November 28, 2012 15:16
Retina screen media query
@media (min--moz-device-pixel-ratio: 1.5),
(-o-min-device-pixel-ratio: 3/2),
(-webkit-min-device-pixel-ratio: 1.5),
(min-device-pixel-ratio: 1.5),
(min-resolution: 144dpi),
(min-resolution: 1.5dppx) {
/* Retina rules! */
}
@davelab6
davelab6 / INSTALL-ttfautohint.md
Last active July 26, 2017 05:33
How to install TTFAutohint 0.92

With HomeBrew

If you have Homebrew and are comfortable with it, you can run

brew edit ttfautohint;

and then replace the file with this one

require 'formula'