Professional Documents
Culture Documents
Python Workshops - May 10
Python Workshops - May 10
● Programming
○ Javascript
○ Python
○ C
○ C++
Swift
○ Java
● Markup
○ HTML
○ CSS
○ Hello *world* (markdown: human readable version of markup)
● Font File
○ Font info (designer, copyright, family name)
■ Vertical Metrics
■ Postscript info
○ Glyphs (list)
■ Glyph Names
■ Unicode value(s)
■ Color label
■ Note
■ Custom Proofer info
■ Side bearings and width
■ Glyph
● contours/paths
○ Vector point: coordinates (straight/curve smooth?)
● components
■ Hinting
○ Metrics
○ Kerning
○ OT Features
■ Substitutions
■ Positioning (Kerning)
○ Other metadata
■ Language support
Boolean: True or False (Always has a capital first letter), None (works like False)
List: Order matters, straight brackets… [1, 2, 3, 4, 5] separated by a comma
Each item in a list has an index
Dictionary: in between braces, and is unordered {} two pieces of info, the name “key” and the value
“value”
Keys needs a colon between itself and the Value
The Key needs to be a string.
If you have multiple key/value pairs, separate them with a comma
[ ] define a list
{ } define a dictionary,
But whenever you need to define something from either, use [ ]
len = length
replace() needs two values .replace(‘C’, ‘G’)
When writing a script, you need to be able to get the information that’s already defined
thisFont = Glyphs.font
print (thisFont.designer)
MAY 17, 2020
Atom
CMD+Shift+L, when all selected, selects each line individually
CMD+F, then
Option+Return: puts a cursor at what is found
Cmd+J: join all selected onto one line
Comment Out = Cmd+/
“glyph” is an arbitrary name used to define a variable that runs in the loop