Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TrueType Collection file. Error: Unsupported OpenType signature ttcf #379

Open
punksta opened this issue Apr 24, 2019 · 4 comments
Open

Comments

@punksta
Copy link

punksta commented Apr 24, 2019

I am trying to open font file with multiple styles inside.

Expected Behavior

font collection file is handled, opentype.js finds multiple fonts.

Current Behavior

image

Possible Solution

I have know idea to be honest :)

Steps to Reproduce (for bugs)

compile multiple ttf fonts into one file using this guide https://graphicdesign.stackexchange.com/a/104892/137343

Context

I want to get supported styles from font file

Your Environment

  • Version used: web preview
  • Font used: roboto from google fonts
  • Browser Name and version: latest stable firefox and chrome
  • Operating System and version (desktop or mobile): mac, ubuntu 19.04
  • Link to your project:
@punksta punksta changed the title Error: Unsupported OpenType signature ttcf TrueType Collection file. Error: Unsupported OpenType signature ttcf Apr 24, 2019
@punksta
Copy link
Author

punksta commented Apr 24, 2019

@punksta
Copy link
Author

punksta commented Apr 24, 2019

@Jolg42
Copy link
Member

Jolg42 commented Apr 24, 2019

@punksta Indeed this is not yet supported and if anybody wants to contribute my guess is that this could be helpful:

The current workaround would be to find a .ttf, .otf or woff version of your font, or to unpackage the font collection to get all the .ttf

@punksta
Copy link
Author

punksta commented Apr 24, 2019

I ended up using fontkit. It does not support getting ttf files from font collection, but it can return list of font with names and other data. This is exactly that I needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants