Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
fonttosfnt.20912
0017-Guess-Regular-style-for-Medium-Weight.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0017-Guess-Regular-style-for-Medium-Weight.patch of Package fonttosfnt.20912
From 7096c58f3fe3b6c79508cb16daac5c5bb2f042e7 Mon Sep 17 00:00:00 2001 From: Peng Wu <pwu@redhat.com> Date: Thu, 11 Jun 2020 14:09:35 +0800 Subject: [PATCH] Guess Regular style for Medium Weight X Logical Font Description recognize "Medium" as "Regular". Update the faceWeight function to change style from "Medium" to "Regular". --- util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util.c b/util.c index 4482c9a..12d92ea 100644 --- a/util.c +++ b/util.c @@ -302,7 +302,7 @@ faceWeight(FT_Face face) else if(strcasecmp(prop.u.atom, "light") == 0) return 300; else if(strcasecmp(prop.u.atom, "medium") == 0) - return 500; + return 400; else if(strcasecmp(prop.u.atom, "semibold") == 0) return 600; else if(strcasecmp(prop.u.atom, "bold") == 0) @@ -312,9 +312,9 @@ faceWeight(FT_Face face) else if(strcasecmp(prop.u.atom, "black") == 0) return 900; else - return 500; + return 400; } else - return 500; /* for now */ + return 400; /* for now */ } int -- GitLab
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor