postprocess/CustomTarget_fontconfig.mk  |    3 ++-
 postprocess/fontconfig/fc_local.snippet |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 1 deletion(-)

New commits:
commit a5e7a606f6cd94b0287e7db35c6eb11afd9e5ea5
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Oct 24 14:18:39 2025 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Oct 24 16:53:41 2025 +0200

    fontconfig config to disable embedded bitmaps for Calibri, Cambria & Monaco
    
    because they look terrible rendered via cairo+freetype.
    
    Change-Id: I03cba65b49c1157075e6665290e0273eb9300603
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192943
    Reviewed-by: Andras Timar <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/postprocess/CustomTarget_fontconfig.mk 
b/postprocess/CustomTarget_fontconfig.mk
index decc71f82cef..501b7bcd1ec9 100644
--- a/postprocess/CustomTarget_fontconfig.mk
+++ b/postprocess/CustomTarget_fontconfig.mk
@@ -19,12 +19,13 @@ 
$(gb_CustomTarget_workdir)/postprocess/fontconfig/fc_local.conf: \
     $(SRCDIR)/external/more_fonts/fc_local.snippet
 endif
 
-$(gb_CustomTarget_workdir)/postprocess/fontconfig/fc_local.conf:
+$(gb_CustomTarget_workdir)/postprocess/fontconfig/fc_local.conf: 
$(SRCDIR)/postprocess/fontconfig/fc_local.snippet
        printf '<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "/etc/fonts/conf.d/fonts.dtd">
<fontconfig>
' >$@
        cat $(SRCDIR)/extras/source/truetype/symbol/fc_local.snippet >>$@
 ifneq ($(filter MORE_FONTS,$(BUILD_TYPE)),)
        cat $(SRCDIR)/external/more_fonts/fc_local.snippet >>$@
 endif
+       cat $(SRCDIR)/postprocess/fontconfig/fc_local.snippet >>$@
        printf '</fontconfig>
' >>$@
 
 # vim: set noet sw=4 ts=4:
diff --git a/postprocess/fontconfig/fc_local.snippet 
b/postprocess/fontconfig/fc_local.snippet
new file mode 100644
index 000000000000..cbdc8718bb89
--- /dev/null
+++ b/postprocess/fontconfig/fc_local.snippet
@@ -0,0 +1,32 @@
+
+<!--
+  Disable embedded bitmaps for Calibri, Cambria & Monaco because
+  they look terrible rendered via cairo+freetype.
+ -->
+
+<match target="font">
+  <test qual="any" name="family">
+    <string>Calibri</string>
+  </test>
+  <edit name="embeddedbitmap">
+    <bool>false</bool>
+  </edit>
+</match>
+
+<match target="font">
+  <test qual="any" name="family">
+    <string>Cambria</string>
+  </test>
+  <edit name="embeddedbitmap">
+    <bool>false</bool>
+  </edit>
+</match>
+
+<match target="font">
+  <test qual="any" name="family">
+    <string>Monaco</string>
+  </test>
+  <edit name="embeddedbitmap">
+    <bool>false</bool>
+  </edit>
+</match>

Reply via email to