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

Cannot detect name for fonts #4

Closed
ala85 opened this issue Jul 2, 2017 · 3 comments
Closed

Cannot detect name for fonts #4

ala85 opened this issue Jul 2, 2017 · 3 comments

Comments

@ala85
Copy link

ala85 commented Jul 2, 2017

I am trying to analyse fonts files (woff, otf and ttf) and extract metadata information such as font name. For instance, when analysing the attached file JustAFileName.zip, the below code is not able to retrieve the font name information:

FVFont font = FontVerter.readFont(file);
String fontName = font.getName(); // always returns null

So far I have been unable to get the font name for any font I tried to analyse, so my guess is that either there is a bug or all the fonts I tried are somehow "corrupted".

@ala85 ala85 changed the title Cannot detect name for a font Cannot detect name for fonts Jul 2, 2017
@m-abboud
Copy link
Owner

m-abboud commented Jul 3, 2017

awesome working on this now. Should be fixed by end of today

m-abboud pushed a commit that referenced this issue Jul 3, 2017
…bles causing getName() not to work. use CFF table names instead
@m-abboud
Copy link
Owner

m-abboud commented Jul 3, 2017

Fixed. Also added some new name getters to FontProperties (use font.getProperties()) including version, full name, weight and copyright notice

@m-abboud m-abboud closed this as completed Jul 3, 2017
@ala85
Copy link
Author

ala85 commented Jul 4, 2017

Thanks a lot! Will the fix be released on some repository with a new version (I assume 1.12.20)?

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

No branches or pull requests

2 participants