include DM Sans font in builds #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
hi!! im so sorry for bothering about missing asset issues again, but i noticed that the DMSans font used by the default git.gay theme on my personal build is not being applied and i don't know how to apply it with the custom directory.
https://git.gay/gitgay/assets/src/branch/main/public/assets/font/DMSans this font directory specifically
git.gay network logs:

git.girlcock.ceo (my instance) logs:

the dark theme stylesheet calls for it:

i thought this was intended and i just needed to use the custom directory, but i have trouble understanding forgejo docs on using the custom directory, and i've tried various variations of using the custom directory, but it's not working.
i've tried
custom/public/assets/font/DMSansandcustom/public/font/DMSans. neither are making any network requests for the font or changing my instance's font.is there a way to get this into builds or something? thanks!!!! <3
in the install used on git.gay, this is the structure of the custom folder. the css file that actually loads the custom fonts was included in the head_opengraph.tmpl, i've changed that just now, it's in the head_style.tmpl which is a little more sensible. ive outlined what you'd need for this font to be used.

i did intend to add it to the build eventually, but figuring out how to do that "correctly" with the bundlers and all that was tricky and I decided this was a good enough solution, at least for now. hope this helps with getting it to work on your install!
DM Sans font is not applied on personal builds or usingto includecustomdirectoryDM Sansfont in buildsRenamed the issue, I'll keep it open until I eventually get around to fixing the root of the problem
you're amazing tysm that worked!!!!!!
No problem! Glad I could help 💜