From 651dad80c5880335b2deab5d9ea74224d178daad Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Fri, 26 Nov 2021 10:31:12 +0900 Subject: [PATCH] Revert "Adjust the yBearing value of the emoji." This reverts commit a932dd3114e4dd69aed3a3760b7ca13ea9226a58. Change-Id: I06bd63c9999326db1fb448a30ad8fb6d3b402bca --- .../text/text-abstraction/plugin/font-face-cache-item.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dali/internal/text/text-abstraction/plugin/font-face-cache-item.cpp b/dali/internal/text/text-abstraction/plugin/font-face-cache-item.cpp index 76e7d99..894500e 100644 --- a/dali/internal/text/text-abstraction/plugin/font-face-cache-item.cpp +++ b/dali/internal/text/text-abstraction/plugin/font-face-cache-item.cpp @@ -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(ftFace->glyph->metrics.horiBearingY) * FROM_266; - } - else - { - glyph.yBearing += static_cast(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(mRequestedPointSize) * FROM_266 / POINTS_PER_INCH * dpiVertical; -- 2.7.4