[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
This commit is contained in:
qwang12 2008-03-15 05:08:37 +00:00
parent d1d249a7b6
commit a2b58cf3d2
1 changed files with 0 additions and 36 deletions

View File

@ -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 (