Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
fonttosfnt.20912
0001-don-t-add-arbitrary-number-to-the-glypth-m...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-don-t-add-arbitrary-number-to-the-glypth-metrics.patch of Package fonttosfnt.20912
From d6a79961c097e8caa2b432e634fb4df24238e910 Mon Sep 17 00:00:00 2001 From: Christopher Zimmermann <madroach@gmerlin.de> Date: Sun, 31 May 2020 07:58:10 +0200 Subject: [PATCH 01/14] don't add arbitrary number to the glypth metrics This caused pango to calculate wrong, too large font extents and in consequence gvim used too large character cells. --- struct.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/struct.c b/struct.c index 294f498..7b6cca5 100644 --- a/struct.c +++ b/struct.c @@ -453,7 +453,7 @@ glyphMetrics(FontPtr font, int code, if(bitmap) { if(width_return) *width_return = - (((float)bitmap->advanceWidth + 0.5) / strike->sizeX) * + (((float)bitmap->advanceWidth) / strike->sizeX) * TWO_SIXTEENTH; if(x_min_return) *x_min_return = @@ -469,11 +469,11 @@ glyphMetrics(FontPtr font, int code, charcell fonts. */ if(x_max_return) *x_max_return = - (((float)bitmap->horiBearingX + bitmap->width + 0.5) + (((float)bitmap->horiBearingX + bitmap->width) / strike->sizeX) * TWO_SIXTEENTH; if(y_max_return) *y_max_return = - (((float)bitmap->horiBearingY + 0.5) / strike->sizeY) * + (((float)bitmap->horiBearingY) / strike->sizeY) * TWO_SIXTEENTH; return 1; } -- 2.28.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