this post was submitted on 04 Mar 2024
96 points (100.0% liked)

technology

23308 readers
147 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS
 

Tweet

I googled for a different non-tweet source but the results were shit.

top 7 comments
sorted by: hot top controversial new old
[–] normalmente@hexbear.net 23 points 8 months ago

That's pretty cool actually, though that might be a bit limiting if they ever want to change it to be more complex. There is a program called Plymouth that is most seen in free operating systems like Fedora and Ubuntu to display animated boot splashes. If you have plymouth installed in your Linux system, you can navigate to /usr/share/plymouth/ to see that the animation is a sequence of png images that are displayed at boot using kernel mode settings (KMS) and direct rendering manager (DRM). Pretty neat.

[–] chungusamonugs@hexbear.net 19 points 8 months ago

TF2 load bearing coconut moment

[–] blobjim@hexbear.net 18 points 8 months ago (1 children)

needs to be simple code-wise so it can be displayed in a really limited boot environment. Fonts are complex but they already have to display text so.

[–] HumanBehaviorByBjork@hexbear.net 10 points 8 months ago

makes sense. if your preboot environment can already render text, it's an easy way to achieve animation.

[–] oregoncom@hexbear.net 15 points 8 months ago

Windows moment.

[–] tactical_trans_karen@hexbear.net 6 points 8 months ago

I fucking knew the little line got longer! I just thought my eyes were playing tricks on me, now I can rest easy.

[–] hai@lemmy.ml 4 points 8 months ago

It’s actually not uncommon for icons (and occasionally animations) to be loaded as fonts. This is why if you force your web browser to only display a certain font and go to certain websites they display strangely, or just have slightly broken loading screens.

On the web this is (mainly) for optimization. If a website has a few icons there is no problem with loading a few SVGs, or (if there is a very small number) raster images can get a pass. Although, if you’re building an application with a large number of icons (think most hyper-interactive data-driven sites) for every SVG you load that is (unless embedded directly in HTML) a single HTTP request, computers (generally, in most cases) take longer to complete several smaller operations than one big one — these means that compiling your icons into a font is much more optimized than loading them individually.

Now, considering this is Windows (where they don’t particularly seem to care about heavy optimizations and fine tuning) I’m sure it was just easier for them to write a single thing that renders a font instead of something that renders a font and another thing that renders images/animations.