Skip to content

Instantly share code, notes, and snippets.

View rbmntjs's full-sized avatar

Robin Mientjes rbmntjs

View GitHub Profile
@rbmntjs
rbmntjs / generateSuffixFeature.py
Created January 3, 2017 14:51
A simple Python script to generate a dumb OpenType feature based on a selected glyph suffix
f = CurrentFont()
# Set these values for the feature you want
# It should be based on a suffix, for easy cheap magic
setname = 'StylisticAlternates'
suffix = '.salt'
# The rest is automatic; copy-paste the output
base = [] # Base glyphs that match the suffix
subset = [] # Glyph names to sort
@rbmntjs
rbmntjs / printGDEF.py
Created June 17, 2016 13:05
This script runs through your glyphs and outputs two classes for use in your GDEF table. Open for suggestions.
# Find glyphs with anchors and _anchors,
# to properly populate a GDEF table.
f = CurrentFont()
# Sort alphabetically for easier scanning
names = f.keys()
names.sort()
gdef_base = '@BASE = [ '
@rbmntjs
rbmntjs / printMarkFeature.py
Last active July 1, 2018 16:46
A simple Python script that loops through your font, looks for anchors, and spits out a mark feature.
'''
Print all requested anchors as a mark feature
Requires Robofont, Robofab and the Adobe FDK
'''
# TODO: Include mkmk?
####################################################
### Edit the next settings to match your font setup.
####################################################

Keybase proof

I hereby claim:

  • I am rbmntjs on github.
  • I am rbmntjs (https://keybase.io/rbmntjs) on keybase.
  • I have a public key whose fingerprint is 6629 E7C2 60CF 2926 6AAE 003F 8827 11B4 C0C1 E8F1

To claim this, I am signing this object:

@rbmntjs
rbmntjs / svg.css
Created November 2, 2012 14:23 — forked from judofyr/svg.css
.lt-ie9 .error {
background-image: url("images/sprites/sprite.png"); }
.error {
background-image: url("images/sprites/sprite.svg"); }
@charset "UTF-8";
@import "http://cloud.webtype.com/css/2d8afe4f-a41c-42a1-b9c8-02a4f964fde7.css";
/*
contraclassics ⬤
Authored April-September 2012 by Rob Mientjes and Magnus Holm
JavaScript magic by Magnus Holm
Ruby on Rails fun times by Magnus Holm and Runar Svendsen
@rbmntjs
rbmntjs / error.html
Created October 9, 2012 14:29
Loading error
<p class="general-page-error">
<span class="problem">There was a loading error. Please try again or refresh this page.</span>
</p>
<section class="browser main">
<h1>ContraClassics is the best way to find and listen to classical music. Start browsing, discover and enjoy.</h1>
<section>
<p class="side-summary">Drill down into the main categories and browse, or look at more specialised content</p>
<div class="lens select">
<a href="browse-select-composers.html">
<h2 class="icon big icon-composers">Composers</h2>
@rbmntjs
rbmntjs / errorbars.html
Created September 3, 2012 11:52
Error bars
<div class="essentials-disabled">
<p>You need JavaScript enabled in order to use ContraClassics. (<a href="http://enable-javascript.com/">How do I do that?</a>)</p>
</div>
<div class="essentials-disabled">
<p>You need Flash installed in order to listen to music. <a href="http://get.adobe.com/flashplayer/">Get Flash</a></p>
</div>
@rbmntjs
rbmntjs / missing-texts.md
Created August 30, 2012 15:51
Necessary texts

Intro text to the service

You are on a shit browser

Firefox flash issue “You need to have Flash installed to play music. We personally recommend upgrading to Safari or Google Chrome, however.” [Download Flash] [Safari if on Mac] [Chrome]

Old IE can’t play continuously