Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fix ugly Calibri, Cambria font rendering on Linux
<!-- Add this to your font configuration e.g ~/.config/fontconfig/fonts.conf -->
<!-- Note that this will disable all embedded bitmaps in fonts that use them -->
<!-- disable embedded bitmaps in fonts to fix Calibri, Cambria, etc. -->
<match target="font">
<edit mode="assign" name="embeddedbitmap"><bool>false</bool></edit>
</match>
@AntonFriberg

This comment has been minimized.

Copy link
Owner Author

@AntonFriberg AntonFriberg commented May 28, 2020

This is before the change using the following text

This is a test on calibri that is rendering with size 12pt on a 1920x1080 screen using "Calibri". Some things like doubt t (tt) look terrible. Hinting is also completely broken making it difficult to read text:
The lazy dog jumped over the crazy fox

This is a test on calibri that is rendering with size 12pt on a 1920x1080 screen using "Calibri". Some things look terrible like f i (fi) and ( ). Hinting is also completely broken making it difficult to read text:
The lazy dog jumped over the crazy fox

However Linux native fonts look a lot better and is rendered correctly, tt, fi ()
The lazy dog jumped over the crazy fox

Before

Note that the second test is cambra not calibri
scrn-2020-05-28-19-08-22

@AntonFriberg

This comment has been minimized.

Copy link
Owner Author

@AntonFriberg AntonFriberg commented May 28, 2020

After

Note that the second test is cambra not calibri
scrn-2020-05-28-19-11-42

@AntonFriberg

This comment has been minimized.

Copy link
Owner Author

@AntonFriberg AntonFriberg commented May 28, 2020

Before & After in single image

fontrendering_before_after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment