[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] master a0c5034: * src/ftview.c (Render_{All, Fancy, S
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] master a0c5034: * src/ftview.c (Render_{All, Fancy, Stroke}): Improve zero-width glyphs. |
Date: |
Sun, 23 Apr 2023 09:13:17 -0400 (EDT) |
branch: master
commit a0c50341fc1362512ffb233062b6dfd19894924c
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftview.c (Render_{All,Fancy,Stroke}): Improve zero-width glyphs.
---
src/ftview.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/ftview.c b/src/ftview.c
index 756ba85..7c543f7 100644
--- a/src/ftview.c
+++ b/src/ftview.c
@@ -244,7 +244,8 @@
grFillRect( display->bitmap, x, y - width, width, width,
status.green );
- if ( slot->bitmap_left < -width >> 2 )
+ /* advance pen immediately if the glyph is behind the origin */
+ if ( slot->bitmap_left + (int)slot->bitmap.width <= 0 )
{
x += width;
width = 0;
@@ -394,7 +395,8 @@
grFillRect( display->bitmap, x, y - width, width, width,
status.green );
- if ( slot->bitmap_left < -width >> 2 )
+ /* advance pen immediately if the glyph is behind the origin */
+ if ( slot->bitmap_left + (int)slot->bitmap.width <= 0 )
{
x += width;
width = 0;
@@ -589,7 +591,8 @@
grFillRect( display->bitmap, x, y - width, width, width,
status.green );
- if ( slot->bitmap_left < -width >> 2 )
+ /* advance pen immediately if the glyph is behind the origin */
+ if ( slot->bitmap_left + (int)slot->bitmap.width <= 0 )
{
x += width;
width = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] master a0c5034: * src/ftview.c (Render_{All, Fancy, Stroke}): Improve zero-width glyphs.,
Werner Lemberg <=