# comment
whitespace has no meaning except single spaces used to separate important things
@ is an identifier
() means button of some sort
[__] means text entry of some sort (except checkbox)
{} means image
- means line
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 uuid | |
from glyphsLib import load, GSPath, GSNode, GSLayer | |
from fontTools.varLib.models import VariationModel, normalizeValue | |
import numpy as np | |
from tqdm import tqdm | |
import argparse | |
def interpolate_paths_without(glyph, intermediate_layer, intermediate_location): | |
tags = [axis.axisTag for axis in glyph.parent.axes] |
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
#!/usr/bin/env python3 | |
import AppKit | |
from mojo.subscriber import Subscriber, WindowController | |
from mojo.UI import getDefault | |
from mojo.events import EditingTool, installTool | |
from mojo.subscriber import registerGlyphEditorSubscriber, unregisterGlyphEditorSubscriber | |
from mojo.roboFont import OpenWindow | |
from mojo.tools import IntersectGlyphWithLine |
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 mojo.events import BaseEventTool, installTool | |
backgroundColor = (1, 1, 0, 0.5) | |
mouseDownColor = (0, 0, 0, 0.25) | |
defaultSymbolSettings = dict( | |
name="oval", | |
size=(20, 20), | |
fillColor=(1, 0, 0, 0.75), | |
strokeColor=(1, 1, 1, 0.5), | |
strokeWidth=10 |
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
''' | |
Avoid offcurve start points | |
''' | |
from fontTools.ufoLib.pointPen import PointToSegmentPen | |
def find_offcurve_start(glyph): | |
''' | |
compare coordinates of first bPoint to coordinates of first point |
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
### These are Glyph Construction formulas by CJ Dunn (www.CJType.com) used to support | |
### Latin S character set as defined by Christoph Koeberlin here: https://github.com/koeberlin/Latin-Character-Sets | |
### | |
### I use these with the Glyph Construction extension for Robofont: https://github.com/typemytype/GlyphConstruction/tree/master/GlyphConstruction.roboFontExt | |
### | |
### variables start with a dollar sign and to use them put the name between curly brackets | |
### offset for accents for uc and lc, change values for each style | |
$top_uc = `O:top+37` | |
$top_lc = `o:top+48` | |
### anchor names variables are below |
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
# Copyright 2020 Khaled Hosny | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in |
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 Window, EditText, Button | |
from mojo.extensions import setExtensionDefault, getExtensionDefault, registerExtensionDefaults, removeExtensionDefault | |
class preferenceTest(object): | |
def __init__(self): | |
self.windowname = 'pref save / load test' | |
self.prefKey = 'com.okaytype.toolName' | |
self.makeWindow() |
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
""" | |
test all open fonts on compatibility | |
create temp designspace file | |
align all fonts on a temp axis | |
order does not matter | |
run designspaceProblems | |
present the data somehow |
NewerOlder