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

When queried on a manifest, return some font metadata (such as whether the font is variable) to allow user to make font usage decisions #182

Open
Intelligent2013 opened this issue Mar 10, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Intelligent2013
Copy link

Intelligent2013 commented Mar 10, 2024

Source issue: metanorma/metanorma#357

Currently, the font 'Inter' (regular and bold) is using on the new ISO Cover page in PDF.

Fontist also installs the font file Inter-VariableFont_slnt,wght.ttf (

font: Inter-VariableFont_slnt,wght.ttf
).
The variable fonts aren't supported by Apache FOP, and causes the warning message:

WARNING: font '/config/fonts/Inter-VariableFont_slnt,wght.ttf' from the fontist manifest file is the variable font and doesn't supported by Apache FOP!

Need to remove the entry about Inter-VariableFont_slnt,wght.ttf from Inter.yml.

@ronaldtse ronaldtse added the enhancement New feature or request label Mar 31, 2024
@ronaldtse
Copy link
Contributor

@Intelligent2013 what would you think is the proper approach here?

Should Fontist:

  1. In the font manifest returned, differentiate variable vs non-variable fonts?
  2. Not install the Inter variable font?
  3. Allow the Fontist user to specify if they want variable fonts or not?

@Intelligent2013
Copy link
Author

@Intelligent2013 what would you think is the proper approach here?

Should Fontist:

  1. In the font manifest returned, differentiate variable vs non-variable fonts?
  2. Not install the Inter variable font?
  3. Allow the Fontist user to specify if they want variable fonts or not?

@ronaldtse I think that option 1. would be preferable. Then mn2pdf will ignore variable fonts entries (I'll update so).

@ronaldtse
Copy link
Contributor

Agree. The Fontist manifest returned from a query should return some font metadata for the users to make decisions.

@ronaldtse ronaldtse changed the title Exclude Inter variable font When queried on a manifest, return some font metadata (such as whether the font is variable) to allow user to make font usage decisions Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: High priority
Development

No branches or pull requests

3 participants