You are not logged in.

#1 2021-12-05 19:53:17

TheStroyer
Member
Registered: 2018-08-28
Posts: 54

[SOLVED] Calibri doesn't use anti-aliasing in libreoffice

I've installed windows fonts using the aur package ttf-win-10.
I'm having problems with how the font is rendered in libreoffice at some scales. For example a 12pt calibri font at 120% scale in libreoffice looks especially bad.
This image shows an example for what that looks like.

Example

Other fonts like DeJaVu Sans look fine. But I need the windows fonts for some things.


I have been unable to replicate this issue in scribus, but maybe other programs are affected as well.

Last edited by TheStroyer (2021-12-05 22:00:11)

Offline

#2 2021-12-05 21:26:09

seth
Member
Registered: 2012-09-03
Posts: 60,000

Re: [SOLVED] Calibri doesn't use anti-aliasing in libreoffice

No idea about that package, but the font from https://aur.archlinux.org/packages/ttf-windows/ has bitmap versions for 12,13,15,16,17&19 px embedded.
Try eg. https://askubuntu.com/questions/21097/c … able-fonts

Offline

#3 2021-12-05 21:59:57

TheStroyer
Member
Registered: 2018-08-28
Posts: 54

Re: [SOLVED] Calibri doesn't use anti-aliasing in libreoffice

Thanks for the pointer. I was able to solve it using the accepted answer in the askubuntu link (the other answer did not work, since it was using two separate tests). It looks as expected now!

EDIT:
The accepted answer wasn't entirely correct. It had two tests in one, which made fontconfig show a warning. Now I set .config/fontconfig/fonts.conf to:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
  <test name="family" compare="contains">
    <string>Calibri</string>
  </test>
    <edit name="embeddedbitmap" mode="assign">
      <bool>false</bool>
    </edit>
  </match>
  <match target="font">
  <test name="family" compare="contains">
    <string>Cambria</string>
  </test>
    <edit name="embeddedbitmap" mode="assign">
      <bool>false</bool>
    </edit>
  </match>
</fontconfig>

Last edited by TheStroyer (2021-12-06 13:55:57)

Offline

Board footer

Powered by FluxBB