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
Can't use a custom font #22724
Comments
If you put the Could you provide your full config (with redacted values if needed) if this isn't the case? |
@bwindels Thanks, I've followed this tutorial, and here is my config.json. I've created a Dockerfile to move the font files to inside the container. The colours are applied correctly, just the font doesn't work.
|
@avfigueredo any errors in the console? Do the font files actually work at the paths configured if you try navigate to them directly? |
@t3chguy There aren't errors in the console. I was looking here, and the files aren't loaded on the page. When I try to access the files via browser, they don't open/exist. But, for example, the default font can be opened. |
@t3chguy thanks, I've changed, now I can access the files using the browser. However, it is still without loading the files, I think I'm making a stupid mistake. This is my config file:
The files in the container are in |
Hello guys, any idea about why this is happening? |
@avfigueredo are you still facing this problem? |
No response, closing for now. Re-open if needed |
Steps to reproduce
I'm trying to install a custom font, but for some reason, the app isn't loading my font.
My config.json
"fonts": { "faces": [ { "font-family": "Open Sans", "src": [{"url": "/fonts/Open_Sans.ttf", "format": "ttf"}] } ], "general": "Open Sans, regular", "monospace": "Open Sans, regular" },
I've moved the font files to inside the container.
But the app is still loading the default font.
Outcome
What did you expect?
Use custom font.
What happened instead?
The custom font wasn't loaded, instead, the app continue to load the default font.
Operating system
Ubuntu 20
Browser information
Safari, Brave, Chrome
URL for webapp
It's a private server, running the latest version
Application version
Version Element: ba38b73-react-ba38b73a1550-js-ba38b73a1550 Version Olm: 3.2.8
Homeserver
Synapse
Will you send logs?
No
The text was updated successfully, but these errors were encountered: