(mface__for_chars): Adjusts the unit of face's ascent and
authorhanda <handa>
Tue, 6 Nov 2007 04:42:10 +0000 (04:42 +0000)
committerhanda <handa>
Tue, 6 Nov 2007 04:42:10 +0000 (04:42 +0000)
descent.

src/face.c

index d238eb3..68f774a 100644 (file)
@@ -834,8 +834,8 @@ mface__for_chars (MSymbol script, MSymbol language, MSymbol charset,
              new->layouter = rfont->layouter;
              rfont->layouter = Mnil;
              new->non_ascii_list = NULL;
-             new->ascent = rfont->ascent;
-             new->descent = rfont->descent;
+             new->ascent = rfont->ascent >> 6;
+             new->descent = rfont->descent >> 6;
            } 
          for (; from_g < to_g && from_g->rface->font; from_g++)
            {
@@ -925,8 +925,8 @@ mface__for_chars (MSymbol script, MSymbol language, MSymbol charset,
              new->non_ascii_list = NULL;
              if (rfont)
                {
-                 new->ascent = rfont->ascent;
-                 new->descent = rfont->descent;
+                 new->ascent = rfont->ascent >> 6;
+                 new->descent = rfont->descent >> 6;
                }
            }
          while (g < from_g)