This file contains hidden or 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
f = CurrentFont() | |
glyphName = "a" | |
size = 1080 | |
newPage (size,size) | |
black = 0,0,0 | |
red = 1,0,0 | |
green = 0,1,0 | |
blue = 0,0,1 | |
white = 1,1,1 | |
pointshape = oval #oval or rect |
This file contains hidden or 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 Window, EditText, TextBox | |
from defconAppKit.controls.fontInfoView import postscriptStemSnapToUFO, infoListFromUFO | |
from mojo.subscriber import Subscriber, WindowController, registerCurrentFontSubscriber | |
class Stems(Subscriber, WindowController): | |
def build(self): | |
self.w = Window((250, 70)) | |
self.w.vStemsControl = EditText((60, 10, -10, 20), callback=self.editVCallback) | |
self.w.vStemsLabel = TextBox((10, 10, -10, 17), "vStems") |
This file contains hidden or 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 AppKit | |
import webbrowser | |
import urllib | |
import json | |
import os | |
import ssl | |
import vanilla | |
from mojo.extensions import ExtensionBundle |
This file contains hidden or 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
https://unifiedfontobject.org | |
https://github.com/unified-font-object | |
https://graphics.pixar.com/usd/ | |
https://www.midi.org | |
https://instagram.com/noahjodice | |
https://www.noahjodice.com | |
https://github.com/fonttools/fonttools |
This file contains hidden or 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 https://tylerxhobbs.com/essays/2020/flow-fields | |
import math | |
import random | |
# You need to pip install this in Drawbot | |
# (i.e., go to Python > Install Python Packages and copy in perlin_noise and select install) | |
from perlin_noise import PerlinNoise |
This file contains hidden or 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
# jackson # [email protected] | |
# version 0.3 - conditional status icons | |
import os | |
from AppKit import NSFilenamesPboardType, NSDragOperationCopy | |
from vanilla import Window, List, Button | |
action = 'Do Thing' | |
class doThing(): |
This file contains hidden or 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 __future__ import division | |
morseAlphabet ={ | |
"A" : [1,2,], | |
"B" : [2,1,1,1,], | |
"C" : [2,1,2,1,], | |
"D" : [2,1,1,], | |
"E" : [1,], | |
"F" : [1,1,2,1,], | |
"G" : [2,2,1,], |
This file contains hidden or 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
fonts = AllFonts() | |
for font in fonts: | |
for g in font: | |
if len(g.components) != 0: | |
for c in g.components: | |
b = font[c.baseGlyph] | |
if len(b.components) != 0: | |
e = b.components[0] | |
eb = e.baseGlyph |
This file contains hidden or 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
fonts = AllFonts() | |
for font in fonts: | |
keys = font.keys() | |
for f in fonts: | |
compare_keys = f.keys() | |
for v in compare_keys: | |
if v not in keys: | |
print v |
This file contains hidden or 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
Cicero / De oratore / Spec PA6296 .D6 1569 | |
http://catalog.wustl.edu:80/record=b1913504~S2 | |
Cicero. De oratore. Manuscripts: Meissner Collection. #80 | |
[Book of Hours] / Horae beatae Mariae virginis / France, late 15th century / Spec BX2080 .C25 1450 | |
http://catalog.wustl.edu:80/record=b2783064~S2 | |
[Printed Book of Hours] / Hore in laude gloriosissime virginis Maries / Spec BX2080 .R59 1532 | |
http://catalog.wustl.edu:80/record=b1944669~S2 |
NewerOlder