You are not logged in.

#1 2025-10-09 09:03:42

ironhak
Member
Registered: 2025-08-10
Posts: 71

Weird font... unless I zoom

Hello everyone

I'm on i3wm. I noticed that with some fonts I get really bad render quality, one of them being Colibri.

Here's a couple of screenshots that reproduce the problem:

https://i.imgur.com/eehzZ8D.png
https://imgur.com/f5cQjWX.png
https://imgur.com/uGPOucw.png

This happens on LibreOffice Writer as you can see, but it also happens for example in the gmail website when I receive a mail that uses Calibri.

Can anyone help me to fix this? Thank's a lot smile

Mod edit: - Replaced oversized images with links

Last edited by V1del (2025-10-09 09:24:36)

Offline

#2 2025-10-09 09:33:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,142

Re: Weird font... unless I zoom

Those are MS fonts that contain bitmaps that will get used at certain sizes if you have the ttf-ms-fonts packages. You can disable the display of embedded bitmaps as described in https://wiki.archlinux.org/title/Micros … tmap_fonts you might also instead want to consider installing the metric compatible ttf-carlito and adjusting the font config aliases (as described in same article) to make Calibri map there.

Offline

#3 2025-10-09 09:50:47

ironhak
Member
Registered: 2025-08-10
Posts: 71

Re: Weird font... unless I zoom

V1del wrote:

Those are MS fonts that contain bitmaps that will get used at certain sizes if you have the ttf-ms-fonts packages. You can disable the display of embedded bitmaps as described in https://wiki.archlinux.org/title/Micros … tmap_fonts you might also instead want to consider installing the metric compatible ttf-carlito and adjusting the font config aliases (as described in same article) to make Calibri map there.

Thanks! Yes I have the ms fonts package... But on other systems like Linux Mint when I isntall ms fonts I don't get that problem. Isn't there a ms.fonts package for arch where this issue is fixed by default?

Offline

#4 2025-10-09 10:06:17

ironhak
Member
Registered: 2025-08-10
Posts: 71

Re: Weird font... unless I zoom

Anyway, for anmyone reading in the future, creating this file

~/.config/fontconfig/conf.d/20-no-embedded.conf

with content:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="embeddedbitmap" mode="assign">
      <bool>false</bool>
    </edit>
  </match>
</fontconfig>

after a log-out worked good. The problem is vanished... I'm afraid this will cause problems with Emojis, but let's see.

Offline

#5 2025-10-09 18:37:55

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,142

Re: Weird font... unless I zoom

The first line of the linked section is

Use the 70-no-bitmaps-except-emoji.conf preset to disable this behavior.

which allows you to disable bitmaps safe for emojis with a simple symlink.

In any case if you consider this [SOLVED] please mark it as such by editing the title in your original post.

Offline

#6 2025-10-10 10:08:33

ironhak
Member
Registered: 2025-08-10
Posts: 71

Re: Weird font... unless I zoom

V1del wrote:

The first line of the linked section is

Use the 70-no-bitmaps-except-emoji.conf preset to disable this behavior.

which allows you to disable bitmaps safe for emojis with a simple symlink.

In any case if you consider this [SOLVED] please mark it as such by editing the title in your original post.

So, I removed the file

~/.config/fontconfig/conf.d/20-no-embedded.conf

to test this. And run the following command:

sudo ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps-except-emoji.conf /etc/fonts/conf.d/

Unfortunately the problem presented itself again, meaning that using the preset does not work as intented. Maybe I'm doing something wrong?

Offline

#7 2025-10-10 12:56:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,094

Re: Weird font... unless I zoom

That configlet disables all fonts that are not tagged scalable or outline, ie. regular bitmap fonts, it will especially give fonts w/ embedded bitmaps a pass what upstream seems to equate w/ <swearing> emojis.
The reason behind that configlet was also to nuke bitmap fonts from high orbit because apparently people install them and are then irritated because they end up actually being used (sounds insane and is most likely because of questionable hard font dependencies across distros)

Either way https://wiki.archlinux.org/title/Font_c … tmap_fonts is the correct approach to disable embedded bitmaps and optionially give selected fonts (sigh-mojis) a pass.

Offline

#8 2025-10-10 13:51:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,142

Re: Weird font... unless I zoom

Ah misread that

Offline

#9 2025-10-18 07:44:56

ironhak
Member
Registered: 2025-08-10
Posts: 71

Re: Weird font... unless I zoom

seth wrote:

That configlet disables all fonts that are not tagged scalable or outline, ie. regular bitmap fonts, it will especially give fonts w/ embedded bitmaps a pass what upstream seems to equate w/ <swearing> emojis.
The reason behind that configlet was also to nuke bitmap fonts from high orbit because apparently people install them and are then irritated because they end up actually being used (sounds insane and is most likely because of questionable hard font dependencies across distros)

Either way https://wiki.archlinux.org/title/Font_c … tmap_fonts is the correct approach to disable embedded bitmaps and optionially give selected fonts (sigh-mojis) a pass.

Why then that configlet has no effect at all on my system??? The only thing that fixed was to create that file on my home folder

Offline

#10 2025-10-18 07:54:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,094

Re: Weird font... unless I zoom

Why then that configlet has no effect at all on my system??? The only thing that fixed was to create that file on my home folder

"Why does A not work? The only fix was to create A in my home folder"
https://www.merriam-webster.com/dictionary/oxymoron

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855 but 70-no-bitmaps-except-emoji.conf is not the same as the config examples in https://wiki.archlinux.org/title/Font_c … tmap_fonts at all (that's the point) and 70-no-bitmaps-except-emoji.conf will only disable straight bitmap fonts like eg. https://archlinux.org/packages/extra/any/terminus-font/ but notably not vector fonts with embedded additional bitmaps (under the sketchy assumptions that those embedded bitmaps will "desirable" emojis and completely not accounting w/ embedded bitmaps for raster optimization)

Offline

#11 2025-10-18 08:27:44

ironhak
Member
Registered: 2025-08-10
Posts: 71

Re: Weird font... unless I zoom

seth wrote:

Why then that configlet has no effect at all on my system??? The only thing that fixed was to create that file on my home folder

"Why does A not work? The only fix was to create A in my home folder"
https://www.merriam-webster.com/dictionary/oxymoron

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855 but 70-no-bitmaps-except-emoji.conf is not the same as the config examples in https://wiki.archlinux.org/title/Font_c … tmap_fonts at all (that's the point) and 70-no-bitmaps-except-emoji.conf will only disable straight bitmap fonts like eg. https://archlinux.org/packages/extra/any/terminus-font/ but notably not vector fonts with embedded additional bitmaps (under the sketchy assumptions that those embedded bitmaps will "desirable" emojis and completely not accounting w/ embedded bitmaps for raster optimization)


I still don't understand but thanks anyway

Offline

#12 2025-10-18 08:42:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,094

Re: Weird font... unless I zoom

Please avoid bloating the thread with pointless full quotes.

There are bitmap fonts (pcf, obt,…) and vector fonts (ttf, otf, …) and sometimes vector fonts also embed some bitmaps which can either be for pixel perfect glyph rasterization (turning vectors into pixels) or limited to specific glyphs (colored emojis)

70-no-bitmaps-except-emoji.conf blocks Bitmap fonts but leaves vector fonts with embedded bitmaps alone - what is the opposite of what you want.
The filename is just confusing and the entire rule borderline pointless (just don't install the bitmap font?) which is probably what mislead V1del

Edit:
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Last edited by seth (2025-10-18 16:08:27)

Offline

Board footer

Powered by FluxBB