arrowtype / blog

Notes on type design & development
https://blog.arrowtype.com
5 stars 1 forks source link

FontTools Pens #1

Open arrowtype opened 3 years ago

arrowtype commented 3 years ago

This came up in a Tweet: https://twitter.com/rob_arista/status/1343503190453608448?s=20

How to use FontTools Pens.

Just’s suggested topics for such a post:

arrowtype commented 3 years ago

Fuzzy attempt at understanding:

A pen can be thought of as a "bucket to hold outline data," which you can then feed into a draw method to actually use that data.

The basic process is like this:

  1. Import pen
  2. Make a pen object: pen = CocoaPen(none)
  3. Load data to pen object
  4. Draw the pen into something
arrowtype commented 3 years ago

Better thread of explanation:

https://twitter.com/justvanrossum/status/1352994059556696065?s=21

arrowtype commented 3 years ago

https://robofont.com/documentation/building-tools/toolkit/pens/

https://github.com/jenskutilek/TypoLabs2016