[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] light advance rounding
From: |
Nikolaus Waxweiler |
Subject: |
Re: [ft-devel] light advance rounding |
Date: |
Tue, 8 Mar 2016 20:01:42 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
Like I said, the rounding is done here: [...]
The boundary only stops moving when you also comment out code further up:
-------------------------------------------------------------------------
diff --git a/src/autofit/afloader.c b/src/autofit/afloader.c
index 26bba06..018f17c 100644
--- a/src/autofit/afloader.c
+++ b/src/autofit/afloader.c
@@ -357,10 +357,10 @@
FT_Pos pp1x = loader->pp1.x;
FT_Pos pp2x = loader->pp2.x;
-
+/*
loader->pp1.x = FT_PIX_ROUND( pp1x + hints->xmin_delta );
loader->pp2.x = FT_PIX_ROUND( pp2x + hints->xmax_delta );
-
+*/
slot->lsb_delta = loader->pp1.x - pp1x;
slot->rsb_delta = loader->pp2.x - pp2x;
}
@@ -443,8 +443,8 @@
slot->metrics.vertAdvance = FT_MulFix( slot->metrics.vertAdvance,
metrics->scaler.y_scale );
-
- slot->metrics.horiAdvance = FT_PIX_ROUND(
slot->metrics.horiAdvance );
+ if ( scaler->render_mode != FT_RENDER_MODE_LIGHT )
+ slot->metrics.horiAdvance = FT_PIX_ROUND(
slot->metrics.horiAdvance );
slot->metrics.vertAdvance = FT_PIX_ROUND(
slot->metrics.vertAdvance );
#if 0
-------------------------------------------------------------------------
Is the rounding further up necessary?