[pango/smaller-space] Make missing space smaller




commit fbb22c113d0363d7561997cd64f7d7a2a5452fb8
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Dec 22 21:58:15 2021 -0500

    Make missing space smaller
    
    The Microsoft paper I was citing actually recommends
    1/4 em for ASCII space. Make it so...

 pango/pangocairo-font.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c
index 5eb385d9..598065c0 100644
--- a/pango/pangocairo-font.c
+++ b/pango/pangocairo-font.c
@@ -679,7 +679,7 @@ get_space_extents (PangoCairoFontPrivate *cf_priv,
 {
   /* See https://docs.microsoft.com/en-us/typography/develop/character-design-standards/whitespace */
 
-  int width = pango_font_get_absolute_size (PANGO_FONT (cf_priv->cfont)) / 2;
+  int width = pango_font_get_absolute_size (PANGO_FONT (cf_priv->cfont)) / 4;
 
   if (ink_rect)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]