include DM Sans font in builds #8

Open
opened 2024-06-06 02:08:00 +02:00 by Ghost · 4 comments

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:
image

git.girlcock.ceo (my instance) logs:
image

the dark theme stylesheet calls for it:
image

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/DMSans and custom/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

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: ![image](/attachments/9ac0a289-f255-44af-ba16-fc8183745262) git.girlcock.ceo (my instance) logs: ![image](/attachments/0f6dc9a9-be60-4356-b476-3e822dd05026) the dark theme stylesheet calls for it: ![image](/attachments/72cfbfe0-25a4-459a-bb23-72093acae3af) 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/DMSans` and `custom/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
Owner

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.
image
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!

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. ![image](/attachments/7c90f605-0881-4939-ab72-ffa5b630b6ba) 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!
201 KiB
h changed title from DM Sans font is not applied on personal builds or using custom directory to include DM Sans font in builds 2024-06-06 02:20:00 +02:00
Owner

Renamed the issue, I'll keep it open until I eventually get around to fixing the root of the problem

Renamed 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!!!!!!

you're amazing tysm that worked!!!!!!
Owner

No problem! Glad I could help 💜

No problem! Glad I could help 💜
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
gitgay/forgejo#8
No description provided.