Skip to content

Instantly share code, notes, and snippets.

View thundernixon's full-sized avatar

Stephen Nixon thundernixon

View GitHub Profile
@thundernixon
thundernixon / drawbot-example-hex2rgb-call.py
Last active January 25, 2020 04:36
Use normal hex values in Drawbot
### Example of using the method in a script for Drawbot
# import the method from hexToRgb.py (have hexToRgb.py in the same folder as your script)
# alternatively, you can also just include the whole method in your code
from hex2rgb import hex2rgb
# have a hex color in mind (works with or without the # sign)
myHex = "#2F3137"
# use an asterisk to feed the tuple (R,G,B) result in place of any usual drawbot color value
@thundernixon
thundernixon / tasks.json
Last active March 25, 2021 14:48
Run RoboFont script from VS Code
{
"version": "2.0.0",
"tasks": [
{
"label": "Run in RoboFont",
"type": "shell",
"command": "robofont",
"args": [
"-p",
"${file}"
@thundernixon
thundernixon / stylus-gmail-enhance-readability.css
Last active December 25, 2021 02:08
Make GMail more readable with this CSS in the Chrome Extension *Stylus*
/* ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ */
/* Use with the Stylus Chrome extension */
/* Paste it into a Stylus style for URLs starting with https://mail.google.com */
/* (Probably won't work forever, but works as of November 2018) */
/* ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ */
/* =========================================================================== */
@thundernixon
thundernixon / set-is_fixed_pitch-to_true.sh
Last active June 22, 2023 07:16
A shell script to update 'isFixedPitch' attribute 'value' from 0 to 1 on OpenType POST table. Also updates the font version.
# requires XMLstarlet: https://brewformulas.org/Xmlstarlet
# requires gftools: pip install git+https://github.com/googlefonts/gftools
# updates isFixedPitch attribute 'value' from 0 to 1 on OpenType POST table
#
# USAGE:
# TTX a file in the family to see its current version number in nameID 5
# $ ttx -t name <font_path>
# then, on the command line, run:
# $ chmod +x <relative_path>/set-is_fixed_pitch.sh
@thundernixon
thundernixon / README.md
Last active March 18, 2024 17:07
Some resources to test spacing & kerning in type design – now moved to github.com/thundernixon/spacing

Spacing Tests!

Some useful strings and tools to use in spacing and kerning type.

Paul Barnes: "There should be the international standard of spacing tests," and recommended this:

(Text wasn't directly given, so this is what I remember).

Useful to adapt slightly as needed, but it's helpful that it's a simple, brief set of tests.