Fix for retrieved metrics. 84/203384/3
authorVictor Cebollada <v.cebollada@samsung.com>
Wed, 10 Apr 2019 11:15:58 +0000 (12:15 +0100)
committerVíctor Cebollada <v.cebollada@samsung.com>
Tue, 16 Apr 2019 14:25:14 +0000 (14:25 +0000)
commit4399fdc800b2c1376e138ac3985199bb2405d1f4
treea5beb54f6af11c3b9003af0e02cbbf8e4b14016b
parent83938661e53c0a628d8a2e34f55923c130cc9041
Fix for retrieved metrics.

* DALi is not able to correctly layout text for the
  SNum-3R font.

* Enable the SW emboldering as well when the metrics
  are retrieved.

* Use the bounding box of the glyph to correct the
  retrieved metrics used to layout the text.

* A scale factor is applied to the advance metric when
  a font is emboldened by software as Harfbuzz doesn't
  do it.

* Some code beautify.

Change-Id: I3b5167e382654b110177731db191325ce2f01c01
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali/internal/text/text-abstraction/font-client-plugin-impl.cpp