Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:fusionfuture:office
freetype2
0001-Partially-revert-dd78d4a77458fa572c633b81e...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Partially-revert-dd78d4a77458fa572c633b81e1f84b567f9.patch of Package freetype2
From 550c572b0b5bffa4955d2043c341b31df654d3e0 Mon Sep 17 00:00:00 2001 From: Fushan Wen <qydwhotmail@gmail.com> Date: Sun, 17 Sep 2023 15:18:03 +0800 Subject: [PATCH] Partially revert dd78d4a77458fa572c633b81e1f84b567f981ecc To fix bold fonts in WPS Office. --- src/base/ftsynth.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c index f32edd338..b54b66139 100644 --- a/src/base/ftsynth.c +++ b/src/base/ftsynth.c @@ -108,7 +108,7 @@ FT_Fixed ydelta ) { FT_Library library; - FT_Size size; + FT_Face face; FT_Error error; FT_Pos xstr, ystr; @@ -117,15 +117,15 @@ return; library = slot->library; - size = slot->face->size; + face = slot->face; if ( slot->format != FT_GLYPH_FORMAT_OUTLINE && slot->format != FT_GLYPH_FORMAT_BITMAP ) return; - /* express deltas in pixels in 26.6 format */ - xstr = (FT_Pos)size->metrics.x_ppem * xdelta / 1024; - ystr = (FT_Pos)size->metrics.y_ppem * ydelta / 1024; + /* some reasonable strength */ + xstr = FT_MulFix( face->units_per_EM, face->size->metrics.y_scale ) / 24; + ystr = xstr; if ( slot->format == FT_GLYPH_FORMAT_OUTLINE ) FT_Outline_EmboldenXY( &slot->outline, xstr, ystr ); -- 2.42.0
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