design-ops / sketch-to-swiftUI

24 stars 5 forks source link

Error when a font is in a font collection #4

Closed kerrmarin closed 4 years ago

kerrmarin commented 4 years ago

When trying to extract a sketchfile to SwiftUI, if the Sketch file has a font that is in a font collection an error is shown:

ERROR: Avenir Next Regular is in a font collection (/System/Library/Fonts/Avenir Next.ttc), but could not be extracted
  (Note, you need to install fonttools - 'brew install fonttools' should do it)

If fonttools is a requirement of this library it should either be installed as part of the installation of it (if possible) or set as a requirement in the README

kerrmarin commented 4 years ago

This is fixed