MdeModulePkg/HiiDatabase: Remove the incorrect calculation of font baseline

When add Font Package, the cell in EFI_HII_FONT_PACKAGE_HDR
contains the measurement of the widest and tallest characters
in the font. The measurement may be not absolutely correct,
so when use this cell information to calculate the baseline may
cause incorrect result. Besides this calculation is not necessary.
So remove it now.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Dandan Bi 2016-05-31 17:52:19 +08:00 committed by Star Zeng
parent 0672c2cdfe
commit d2970bbc1d
1 changed files with 0 additions and 4 deletions

View File

@ -704,10 +704,6 @@ FindGlyphBlock (
(UINT8 *) FontPackage->FontPkgHdr + 3 * sizeof (UINT32),
sizeof (EFI_HII_GLYPH_INFO)
);
BaseLine = (UINT16) (LocalCell.Height + LocalCell.OffsetY);
if (MinOffsetY > LocalCell.OffsetY) {
MinOffsetY = LocalCell.OffsetY;
}
}
BlockPtr = FontPackage->GlyphBlock;