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

Custom fonts not working #1849

Open
5 tasks done
highfredo opened this issue Jan 27, 2025 · 5 comments
Open
5 tasks done

Custom fonts not working #1849

highfredo opened this issue Jan 27, 2025 · 5 comments

Comments

@highfredo
Copy link

Steps to reproduce

Add fonts in /config/fonts/

config/
  fonts/
    Merriweather/
      Merriweather-BlackItalic.ttf
      ....
    Literata/
      ....

Expected behavior

The book should be displayed with the selected font

Actual behavior

The UI detects them but when you select it it switches to the browser's default font, not the selected one.
The selected font is not installed on my OS

Image

Logs

No response

Komga version

1.19.0

Operating system

Docker, Debian Host. Edge browser on Windows

Installation method

Docker

Other details

No response

Acknowledgements

  • I have searched the existing issues (open AND closed) and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I have checked the FAQ.
  • I have updated the app to the latest version.
  • I will fill out all of the requested information in this form.
@gotson
Copy link
Owner

gotson commented Jan 28, 2025

Can you provide startup logs? Can you also check the browser's network tools / console and check for any errors in there?

@highfredo
Copy link
Author

highfredo commented Jan 28, 2025

Server Logs:
komga.log

Browser console log:
Image

Browser network tools:
No errors other than 404 when loading /next and /previous

Doesn't even try to load the fonts
Image

/api/v1/fonts/resource/[font_name]/css responses looks like this:
Image
Image

@gharden91
Copy link

I am running into this issue as well. I can provide additional logs if necessary.

@zhen-huan-hu
Copy link

Not sure if related. When I used OTF fonts, it worked on my desktop computer, but not on iOS (I can still select the font but it just switches back to the system default font). Converting the fonts WOFF2 solves the issue.

@gharden91
Copy link

OTF fonts do not work for me on Web/Windows and Edge/iOS.
woff2 Fonts do work for me on Web/Windows and Edge/iOS.

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

4 participants