[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] gsoc-anurag-2023 bd0c3e594 1/2: dense fixes
From: |
Werner Lemberg |
Subject: |
[freetype2] gsoc-anurag-2023 bd0c3e594 1/2: dense fixes |
Date: |
Wed, 4 Oct 2023 17:07:49 -0400 (EDT) |
branch: gsoc-anurag-2023
commit bd0c3e594e8e62ee0a1cdec4f68b62a8661a8a54
Author: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
Commit: Anurag Thakur <anurag105csec21@bpitindia.edu.in>
dense fixes
---
modules.cfg | 2 +-
src/dense/ftdenserend.c | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/modules.cfg b/modules.cfg
index c141b14ba..548893213 100644
--- a/modules.cfg
+++ b/modules.cfg
@@ -100,7 +100,7 @@ HINTING_MODULES += pshinter
####
# Dense Rasterizer
-#RASTER_MODULES += dense
+RASTER_MODULES += dense
# Anti-aliasing rasterizer.
RASTER_MODULES += smooth
diff --git a/src/dense/ftdenserend.c b/src/dense/ftdenserend.c
index c9fbb0f22..00449111b 100644
--- a/src/dense/ftdenserend.c
+++ b/src/dense/ftdenserend.c
@@ -162,8 +162,8 @@
}
/* translate outline to render it into the bitmap */
- if ( x_shift || y_shift ){
- FT_Outline_Translate( outline, x_shift, y_shift );
+ if ( (x_shift || y_shift)&&!slot->prel_shifted ){
+ //FT_Outline_Translate( outline, x_shift, y_shift );
FT_PreLine pl = slot->prelines;
while (pl!=NULL)
{
@@ -174,6 +174,7 @@
pl = pl->next;
}
+ slot->prel_shifted = 1;
}
@@ -198,8 +199,8 @@
slot->internal->flags &= ~FT_GLYPH_OWN_BITMAP;
}
- if ( x_shift || y_shift )
- FT_Outline_Translate( outline, -x_shift, -y_shift );
+ // if ( x_shift || y_shift )
+ // FT_Outline_Translate( outline, -x_shift, -y_shift );
return error;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] gsoc-anurag-2023 bd0c3e594 1/2: dense fixes,
Werner Lemberg <=