Skip to content

Instantly share code, notes, and snippets.

View davelab6's full-sized avatar
🤓
Obsessed with variable fonts

Dave Crossland davelab6

🤓
Obsessed with variable fonts
View GitHub Profile
#!/usr/bin/python
# -*- coding: utf-8 -*-
from fontTools import ttLib
def writeFont(font, filename):
font.save(filename)
print "Wrote font to", filename
@davelab6
davelab6 / noto-deva-example.html
Created April 25, 2014 09:21
Colorful example of Noto Sans Devanagari
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Example</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/FitText.js/1.1/jquery.fittext.min.js"></script>
<style>
/*
SplineFontDB: 3.0
FontName: unifont mono
FullName: GNU Unifont mono
FamilyName: GNU Unifont mono
Weight: Medium
UComments: "Line 1
Line 2"
Version: 1.0-1.84
ItalicAngle: 0
UnderlinePosition: -100
from __future__ import division
from mutatorMath.objects.location import Location
from mutatorMath.objects.mutator import buildMutator
"""
Simple demo that can be run in Drawbot
http://www.drawbot.com

OS X Preferences


#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
from mojo.roboFont import *
from mojo.events import EditingTool, installTool
from AppKit import *
# Original script by Christian Robertson www.betatype.com
# RoboFont version by Travis Kochel www.tktype.com
# Some chunks by Frederik Berlaen www.robofont.com
# Crudely hacked together by Jackson Cavanaugh www.okaytype.com
# Instead of complaining you should help fix this shitty code
# Ted-Nudget version 0.4
@davelab6
davelab6 / FontForge Website htdocs directory (2012-07-09)
Created July 9, 2012 14:17
FontForge Git htdocs directory (2012-07-09)
filesize filename
1253 AA-Comparison.html
4751 AddLookup-Liga.png
4304 AmbrosiaFV-bm.png
7443 AmbrosiaFV.png
222 Anna.gif
141 Antigone.gif
1433 As.png
6265 BASEdlg.png
3200 BASEfeat.png
@davelab6
davelab6 / fontforge-features.txt
Created July 20, 2012 11:28
FontForge Feature List
[IN PROGRESS - J HANNA] Mac Feature: Make transparent PNG icons in menus not crash FontForge
Mac Feature: Apply all fixes in https://github.com/ummels/homebrew/commit/a68fd6b241306d563c3600403e6e7eb56abe0921 to the git master.
HUGE Feature: Make the Python object environment compatible with RoboFab.
Huge feature: add an automatic bug reporting tool that gets source code line number traces from a crash and submits them to a crash mailing list automatically
Big feature: Make key bindings interactive, so when the user clicks and holds on a menu item and the presses a key chord, that key chord is bound to that menu item, and stored in the current theme file
@davelab6
davelab6 / fontforge-preview_glyphs.txt
Created July 29, 2012 10:43
FontForge Related Glyphs Preview Layer
[glyph] _editing glyph_ glyph [glyph]
u_n_o
n_n_nn
b_p_o
q_d_o
@davelab6
davelab6 / shell.txt
Created August 25, 2012 15:39
FF crash
$ fontforge
Copyright (c) 2000-2012 by George Williams.
Executable based on sources from 14:57 GMT 31-Jul-2012-TtfDb-D.
Library based on sources from 14:57 GMT 31-Jul-2012.
A
()
lookupsubtables ('ss01-0',)
len 1
Created A.ss01 83pc/16pc A/B with ss01 ss01-0
('ss01',)