Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 21, 2024 - @781.61 (what is this?)
Forum activity rating: Three Stars Posts: 33/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts    Start New Topic
News: :ha: :pc: Hello Melonland! :pc: :happy:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  HELP: Custom web fonts; how to shrink file size


« previous next »
Pages: [1] Print
Author Topic: HELP: Custom web fonts; how to shrink file size  (Read 767 times)
Memory
Guest
« on: March 16, 2023 @447.95 »

Hey there! :dog:

I know how to embed custom fonts into my website and I like using them a lot. Right now, I use a single font (Galmuri 9) throughout my entire website.

However, every single time someone clicks on my site they download a whole 4MB .ttf font! This is too much for me, especially if some people have to connect over a mobile network or from an old computer, and just generally I dislike bloat. I don't want to hotlink from a different website because that feels mean to them, and it also is a point of failure that I don't want to have to think about.

Is there any way to reduce effective file size with custom fonts for performance reasons, especially if I want to use multiple on the same site?
Logged
shevek
Sr. Member ⚓︎
****


˚₊⁀꒷₊˚︰₊︶꒦꒷₊⊹︰꒷

⛺︎ My Room
iMood: daintyeco

View Profile WWW

Thanks for being rad!First 1000 Members!Joined 2023!
« Reply #1 on: July 05, 2023 @861.17 »

I saw that you never got a reply to this issue. Is this still a problem or did you find a solution yet?

From my research I gather that small file sizes for fonts is kind of a tradeoff at times with not supporting specific characters or older browsers.

I found people save on font file size by only using the WOFF formats (not ttf etc.) which has the downside of not supporting older browsers, but has its own compression via Brotli and is therefore smaller.  Others use FontSquirrel Webfont generator on Expert to edit what the font files entail and remove glyphs; this would already reduce the file size on your end.
If you don't want to edit the file itself and don't mind the file size on your end, you might be interested in setting specifications in the CSS (Unicode range subsetting for example) so it arrives smaller for the end user, but I guess that depends on if your font even has all these characters. If it is already "barebones" so to speak, there might not be much to remove or subset.
Logged

Odo was just an idea. Shevek is the proof.
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

[FONTS] Velvetyne Type Foundry

Started by NightdriftBoard ☆ ∙ Showcase & Links

Replies: 4
Views: 2380
Last post February 06, 2022 @939.16
by Obspogon
biggest a size pfp can be in this forum?

Started by LimeAngelMudzyBoard ⛄︎ ∙ Forum Info & Questions

Replies: 0
Views: 1515
Last post June 22, 2022 @173.18
by LimeAngelMudzy
Help: how to change which html file appears as my thumbnail on neocities

Started by DJoftheCovenBoard ☔︎ ∙ I need Help!

Replies: 3
Views: 1278
Last post August 15, 2022 @39.04
by DJoftheCoven

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi