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

Internal font file name doesnt not equal css font-family name #87

Closed
Ecredes opened this issue Feb 2, 2022 · 2 comments
Closed

Internal font file name doesnt not equal css font-family name #87

Ecredes opened this issue Feb 2, 2022 · 2 comments
Assignees
Labels
bug Render or web package bug

Comments

@Ecredes
Copy link

Ecredes commented Feb 2, 2022

Thanks for this project, it's great. I'm using this in a somewhat special scenario- embedded in ebook EPUB3 files. (works great in this type of application by the way).

There is one exception that comes up when finalizing the epub files, where the CSS font-family name does not match the internal font file name, and that this may cause some issues with some e-reader devices. (I have not encountered any issue myself, this is just a warning that comes up)

Example:
@font-face {
src: url(../fonts/mana.ttf);
font-family: "Mana";
font-weight: normal;
font-style: normal;
}

inside the font file, the font name is 'mana' (all lowercase).

Seems like an easy fix, to make these the same name in future releases. And will avoid any potential issue in for this type of use case in the future.

@Ecredes Ecredes changed the title Internal font file name doesnt not equal css font-famly name Internal font file name doesnt not equal css font-family name Feb 2, 2022
@andrewgioia andrewgioia added the bug Render or web package bug label Mar 6, 2023
@andrewgioia andrewgioia self-assigned this Mar 6, 2023
@andrewgioia
Copy link
Owner

The next font build in 1.15.4 will contain this fix, it just required an update in the font compiler (Icomoon)

@andrewgioia
Copy link
Owner

Added in v1.15.4

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

No branches or pull requests

2 participants