[gnome-builder/fix-block-font] Fix the block font to load with current fontconfig
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/fix-block-font] Fix the block font to load with current fontconfig
- Date: Sun, 20 Sep 2020 19:39:43 +0000 (UTC)
commit 56d98eb0a5ab5da26d44e1a1ceb6ff0cb18dd764
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 20 15:37:47 2020 -0400
Fix the block font to load with current fontconfig
Fontconfig has started to be more picky about ttf
files. Arguably, that is a bug:
https://gitlab.freedesktop.org/fontconfig/fontconfig/-/issues/259
Until it is fixed, we can work around the problem
by giving the font some more metadata to convince
fontconfig to load it.
data/fonts/BuilderBlocks.ttf | Bin 444 -> 468 bytes
data/fonts/BuilderBlocks.ttx | 7 ++++++-
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/data/fonts/BuilderBlocks.ttf b/data/fonts/BuilderBlocks.ttf
index 8fe894206..1d76054b2 100644
Binary files a/data/fonts/BuilderBlocks.ttf and b/data/fonts/BuilderBlocks.ttf differ
diff --git a/data/fonts/BuilderBlocks.ttx b/data/fonts/BuilderBlocks.ttx
index 23c47c402..39cfbefd3 100644
--- a/data/fonts/BuilderBlocks.ttx
+++ b/data/fonts/BuilderBlocks.ttx
@@ -103,7 +103,12 @@
</glyf>
<name>
- <namerecord nameID="0" platformID="1" platEncID="0" langID="0x0" unicode="True">
+ <!-- font family -->
+ <namerecord nameID="1" platformID="0" platEncID="0" langID="0x0" unicode="True">
+ BuilderBlocks
+ </namerecord>
+ <!-- full name (recent fontconfig requires this) -->
+ <namerecord nameID="4" platformID="0" platEncID="0" langID="0x0" unicode="True">
BuilderBlocks
</namerecord>
</name>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]