]> git.proxmox.com Git - mirror_edk2.git/commitdiff
[Description]:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 15 Mar 2008 05:08:37 +0000 (05:08 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 15 Mar 2008 05:08:37 +0000 (05:08 +0000)
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

IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c

index 9f572624a145e64cc70de47a8c0f4df2f852a8ca..01530461a1b5057dd165b7962b51d9dc0048c931 100644 (file)
@@ -159,42 +159,6 @@ HiiLibAddPackages (
   return Status;\r
 }\r
 \r
-EFI_STATUS\r
-EFIAPI\r
-HiiLibAddFontPackageToHiiDatabase (\r
-  IN       UINTN               FontSize,\r
-  IN CONST UINT8               *FontBinary,\r
-  IN CONST EFI_GUID            *GuidId,\r
-  OUT      EFI_HII_HANDLE      *HiiHandle OPTIONAL\r
-  )\r
-{\r
-  EFI_STATUS            Status;\r
-  EFI_HII_FONT_PACK     *FontPack;\r
-  UINT8                 *Location;\r
-\r
-  FontPack        = AllocateZeroPool (sizeof (EFI_HII_FONT_PACK) + FontSize);\r
-  ASSERT (FontPack != NULL);\r
-\r
-  FontPack->Header.Length         = (UINT32) (sizeof (EFI_HII_FONT_PACK) + FontSize);\r
-  FontPack->Header.Type           = EFI_HII_FONT;\r
-  FontPack->NumberOfNarrowGlyphs  = (UINT16) (FontSize / sizeof (EFI_NARROW_GLYPH));\r
-\r
-  Location                        = (UINT8 *) (&FontPack->NumberOfWideGlyphs + sizeof (UINT8));\r
-  CopyMem (Location, FontBinary, FontSize);\r
-\r
-\r
-  //\r
-  // Register our Fonts into the global database\r
-  //\r
-  Status = HiiLibAddPackages (1, NULL, HiiHandle, NULL, FontPack);\r
-  //\r
-  // Free the font database\r
-  //\r
-  FreePool (FontPack);\r
-\r
-  return Status;  \r
-}\r
-\r
 VOID\r
 EFIAPI\r
 HiiLibRemovePackages (\r