Revert "Adjust the yBearing value of the emoji." 18/267118/1
authorjoogab.yun <joogab.yun@samsung.com>
Fri, 26 Nov 2021 01:31:12 +0000 (10:31 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Fri, 26 Nov 2021 01:32:13 +0000 (10:32 +0900)
This reverts commit a932dd3114e4dd69aed3a3760b7ca13ea9226a58.

Change-Id: I06bd63c9999326db1fb448a30ad8fb6d3b402bca

dali/internal/text/text-abstraction/plugin/font-face-cache-item.cpp

index 76e7d99..894500e 100644 (file)
@@ -117,14 +117,7 @@ bool FontFaceCacheItem::GetGlyphMetrics(GlyphInfo& glyph, unsigned int dpiVertic
       glyph.height   = mFixedHeightPixels;
       glyph.advance  = mFixedWidthPixels;
       glyph.xBearing = 0.0f;
-      if(horizontal)
-      {
-        glyph.yBearing += static_cast<float>(ftFace->glyph->metrics.horiBearingY) * FROM_266;
-      }
-      else
-      {
-        glyph.yBearing += static_cast<float>(ftFace->glyph->metrics.vertBearingY) * FROM_266;
-      }
+      glyph.yBearing = mFixedHeightPixels;
 
       // Adjust the metrics if the fixed-size font should be down-scaled
       const float desiredFixedSize = static_cast<float>(mRequestedPointSize) * FROM_266 / POINTS_PER_INCH * dpiVertical;