mirror of https://github.com/acidanthera/audk.git
[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:
parent
d1d249a7b6
commit
a2b58cf3d2
|
@ -159,42 +159,6 @@ HiiLibAddPackages (
|
||||||
return Status;
|
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
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
HiiLibRemovePackages (
|
HiiLibRemovePackages (
|
||||||
|
|
Loading…
Reference in New Issue