This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vanilla | |
import AppKit | |
class WindowTabCollector: | |
windowNames = [ | |
"GlyphWindow", | |
"FontWindow", | |
"SpaceCenter", | |
"ScriptingWindow", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Print out segment structure for current glyph in all open fonts. | |
If the structure matches, only one line will be printed: | |
a 0 ⤴️📈📈⤴️⤴️⤴️⤴️📈⤴️⤴️⤴️ 1 ⤴️📈⤴️⤴️📈⤴️⤴️⤴️⤴️📈📈⤴️⤴️📈📈⤴️ ✔ | |
If it does not, the structure of all open fonts will be printed for comparison: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from os.path import expanduser | |
home = expanduser("~") | |
backgroundFolder = os.path.join(home, "Library/Application Support/Microsoft/Teams/Backgrounds/Uploads") | |
size(1920, 1080) | |
s = 10 | |
sw = int(width()/s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from vanilla.dialogs import * | |
from mojo.UI import AskString | |
from mojo.UI import OutputWindow | |
import pprint | |
######## Spaced-separated list of glyphs to ignore in check (e.g. experimental glyphs) ######## | |
glyphsToIgnore = "" | |
############################################################################################### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from vanilla import * | |
import mojo.drawingTools as ctx | |
from mojo.events import addObserver, removeObserver | |
from mojo.canvas import CanvasGroup | |
from mojo.UI import CurrentGlyphWindow | |
s = 50 | |
class MarkyGlyph(object): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"atom-shell-commands": | |
commands: [ | |
{ | |
arguments: [ | |
"-p" | |
"{FilePath}" | |
] | |
command: "roboFont" | |
name: "build robofont" | |
options: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import vanilla | |
""" Unicode Stylewriter: Use the unicode styles to impress friends and families on the internet. """ | |
class StyleWriter(object): | |
styles = [ | |
dict(title="𝔸", upper=0x1D538, lower=0x1D552, name='mathdoublestruck'), | |
dict(title="𝖠", upper=0x1D5A0, lower=0x1D5BA, name='mathsans'), | |
dict(title="𝗔", upper=0x1D5D4, lower=0x1D5EE, name='mathsansbold'), | |
dict(title="𝐴", upper=0x1D434, lower=0x1D44E, name='mathitalic'), | |
dict(title="𝐀", upper=0x1D400, lower=0x1D41A, name='mathbold'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["robofont", "-p", "$file"], | |
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)", | |
"selector": "source.python", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Type@Cooper West, June 2018 | |
Contribution to Andy Clymer's "Expanding a Type Family" workshop | |
Script to create joyful GIF animations of interpolated glyphs, | |
either colorful or black & white. | |
''' | |
from fontTools.pens.cocoaPen import CocoaPen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size(1000,400) | |
def scribble(pos, width, amplitude): | |
save() | |
x, y = pos | |
start = x | |
strokeWidth(1) | |
fill(None) | |
stroke(1-random()*0.2,0,0) |
NewerOlder