Skip to content

Instantly share code, notes, and snippets.

@typemytype
Last active October 27, 2020 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save typemytype/4bfed7d51bd3eba7229296fb04354d30 to your computer and use it in GitHub Desktop.
Save typemytype/4bfed7d51bd3eba7229296fb04354d30 to your computer and use it in GitHub Desktop.
from AppKit import *
t = """Yeah! A designspace is file that contains the plans for an interpolation system for a typeface. It describes how the source fonts relate and how they should interpolate. It defines the dimensions in which the typeface developes, for instance “weight”, “width”, or other things. A designspace also stores information about the instances, specific locations in the designspace that are interesting and what they need to be called. Designspaces can be used to build variable fonts, but you can also use them to generate fixed UFOs. This text is an introduction to designspace construction. It does not go into detail how to design letterforms for interpolation, or things like family planning. That is for other chapters. To avoid getting tangled in typographic terminology, the dimensions in this text are named after colors."""
synth = NSSpeechSynthesizer.alloc().initWithVoice_("com.apple.speech.synthesis.voice.Whisper")
synth.startSpeakingString_(t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment