-
Download the latest version of Python from python.org. (In our example it will be Python 3.12.3)
-
Install Python with downloaded .pkg file
-
open the terminal app which you can find in
/System/Applications/Utilities/
folder -
install vanilla by copy/pasting following code and hitting enter:
python3.12 -m pip install cocoa-vanilla
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 | |
import plistlib | |
def createBuildTxt(path): | |
infoPath = os.path.join( | |
path, | |
"info.plist" | |
) |
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
# =================================== | |
# INFO | |
# this is file, where you define your settings. | |
# | |
# - It is important to change __myExtensionName__ part in the file's name to to the actual name of your extension. | |
# - You should change all __myExtensionName__ entries to the actual name of your extension. | |
# - Add all your custom defaults to "defaults" variable. | |
# | |
# Imports below ARE MANDATORY: | |
# =================================== |
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
# General | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails | |
._* |
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
familyName | |
styleName | |
styleMapFamilyName | |
styleMapStyleName | |
versionMajor | |
versionMinor | |
year | |
unitsPerEm | |
descender | |
xHeight |
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.UI import AllWindows | |
from mojo.events import addObserver | |
class ShadowlessRoboFont: | |
def __init__(self): | |
addObserver(self, 'shadowlessWindow','fontWindowDidOpen') | |
addObserver(self, 'shadowlessWindow' ,'spaceCenterDidOpen') | |
addObserver(self, 'shadowlessWindow' ,'glyphWindowDidOpen') | |
def shadowlessWindow(self, info): |
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 fontTools.pens.pointPen import AbstractPointPen | |
class SortingPen(AbstractPointPen): | |
def __init__(self): | |
self._contours = [] | |
self._components = [] |
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
# menuTitle : myCloud Export/Import | |
# shortCut : command+control+e | |
""" | |
code took from LettError known as Erik van Blokland (or Erik van Blokland known as LettError) | |
This is window that wraps the functionality explained here: | |
https://forum.robofont.com/topic/646/export-glyph-image-edit-on-ipad-reimport-as-background-image | |
https://gist.github.com/LettError/d0d2688abe959595a88b3fdb85c18db3 | |
""" | |
from vanilla import FloatingWindow, SquareButton, TextBox |
This short tutorial describes how to set up the RoboFont shell's command as an external tool in PyCharm:
-
Go to
Preferences…/External Tools
-
hit
+
button -
in the "Name" field put something like "RoboFont Output"
> in following steps, you need to pay attention to fill the entries precisely the same way as described
NewerOlder