Fix the emboldening logic. (#1575649)

This commit is contained in:
Akira TAGOH 2018-05-11 22:27:47 +09:00
parent dbbd149f29
commit 484997d220
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,31 @@
From 454923709a1a1e480554c400e053aea9a1ba951a Mon Sep 17 00:00:00 2001
From: Akira TAGOH <akira@tagoh.org>
Date: Thu, 10 May 2018 22:01:29 +0900
Subject: [PATCH] Change the emboldening logic again
enable emboldening when request was >= bold and font was <= medium
https://bugs.freedesktop.org/show_bug.cgi?id=106460
---
conf.d/90-synthetic.conf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/conf.d/90-synthetic.conf b/conf.d/90-synthetic.conf
index e344e4a..6b929dd 100644
--- a/conf.d/90-synthetic.conf
+++ b/conf.d/90-synthetic.conf
@@ -42,9 +42,9 @@
-->
<match target="font">
- <!-- check to see if the font is just regular -->
+ <!-- check to see if the weight in the font is less than medium which possibly need emboldening -->
<test name="weight" compare="less_eq">
- <const>regular</const>
+ <const>medium</const>
</test>
<!-- check to see if the pattern requests bold -->
<test target="pattern" name="weight" compare="more_eq">
--
2.17.0

View File

@ -3,7 +3,7 @@
Summary: Font configuration and customization library
Name: fontconfig
Version: 2.13.0
Release: 3%{?dist}
Release: 4%{?dist}
# src/ftglue.[ch] is in Public Domain
# src/fccache.c contains Public Domain code
# fc-case/CaseFolding.txt is in the UCD
@ -20,6 +20,7 @@ Patch1: %{name}-required-freetype-version.patch
Patch2: %{name}-const-name-in-range.patch
Patch3: %{name}-implicit-object-for-const-name.patch
Patch4: %{name}-locale.patch
Patch5: %{name}-fix-embolden-logic.patch
BuildRequires: expat-devel
BuildRequires: freetype-devel >= %{freetype_version}
@ -163,6 +164,9 @@ HOME=/root /usr/bin/fc-cache -s
%doc fontconfig-devel.txt fontconfig-devel
%changelog
* Fri May 11 2018 Akira TAGOH <tagoh@redhat.com> - 2.13.0-4
- Fix the emboldening logic. (#1575649)
* Thu Mar 15 2018 Akira TAGOH <tagoh@redhat.com> - 2.13.0-3
- Another fix to accept the const names in param.
- Fix locale issue.