From a2b58cf3d212471dd604f2658f601c6fb855d3dc Mon Sep 17 00:00:00 2001 From: qwang12 Date: Sat, 15 Mar 2008 05:08:37 +0000 Subject: [PATCH] [Description]: 1) Remove HiiLibAddFontPackageToHiiDatabase as it is not properly defined API. It only cover Simplified Font. User is recomended to use Hii Font Protocol API to add various font into HII database. [Impaction]: All modules that may reference HiiLibAddFontPackageToHiiDatabase function. [Reference Info]: No. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4858 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/FrameworkHiiLib/HiiLib.c | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c b/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c index 9f572624a1..01530461a1 100644 --- a/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c +++ b/IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c @@ -159,42 +159,6 @@ HiiLibAddPackages ( return Status; } -EFI_STATUS -EFIAPI -HiiLibAddFontPackageToHiiDatabase ( - IN UINTN FontSize, - IN CONST UINT8 *FontBinary, - IN CONST EFI_GUID *GuidId, - OUT EFI_HII_HANDLE *HiiHandle OPTIONAL - ) -{ - EFI_STATUS Status; - EFI_HII_FONT_PACK *FontPack; - UINT8 *Location; - - FontPack = AllocateZeroPool (sizeof (EFI_HII_FONT_PACK) + FontSize); - ASSERT (FontPack != NULL); - - FontPack->Header.Length = (UINT32) (sizeof (EFI_HII_FONT_PACK) + FontSize); - FontPack->Header.Type = EFI_HII_FONT; - FontPack->NumberOfNarrowGlyphs = (UINT16) (FontSize / sizeof (EFI_NARROW_GLYPH)); - - Location = (UINT8 *) (&FontPack->NumberOfWideGlyphs + sizeof (UINT8)); - CopyMem (Location, FontBinary, FontSize); - - - // - // Register our Fonts into the global database - // - Status = HiiLibAddPackages (1, NULL, HiiHandle, NULL, FontPack); - // - // Free the font database - // - FreePool (FontPack); - - return Status; -} - VOID EFIAPI HiiLibRemovePackages (