[Tizen] Revert "Adjust the yBearing value of the emoji." 19/267119/2 accepted/tizen/6.5/unified/20211129.211945 submit/tizen_6.5/20211129.074532
authorjoogab.yun <joogab.yun@samsung.com>
Fri, 26 Nov 2021 01:32:56 +0000 (10:32 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Fri, 26 Nov 2021 01:35:47 +0000 (10:35 +0900)
This reverts commit a932dd3114e4dd69aed3a3760b7ca13ea9226a58.

Change-Id: I7f4f25bbe188cba76ac46f8afa46224314700934

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;