summaryrefslogtreecommitdiff
path: root/MdePkg/Library/HiiLib/HiiLib.c
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-15 05:03:33 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-15 05:03:33 +0000
commitc67896b19fadf74d5ed0d779e7571e4ea71aef84 (patch)
tree9addb2fec41744fc73928a92ad7704a09be7d383 /MdePkg/Library/HiiLib/HiiLib.c
parentdce23de2f16fe603c4a464c19d1fe6db68e3a6da (diff)
downloadedk2-platforms-c67896b19fadf74d5ed0d779e7571e4ea71aef84.tar.xz
[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@4855 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/HiiLib/HiiLib.c')
-rw-r--r--MdePkg/Library/HiiLib/HiiLib.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/MdePkg/Library/HiiLib/HiiLib.c b/MdePkg/Library/HiiLib/HiiLib.c
index e2153f307d..a1797c930f 100644
--- a/MdePkg/Library/HiiLib/HiiLib.c
+++ b/MdePkg/Library/HiiLib/HiiLib.c
@@ -167,52 +167,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;
- UINT8 *Location;
- EFI_HII_SIMPLE_FONT_PACKAGE_HDR *SimplifiedFont;
- UINTN PackageLength;
- EFI_HII_PACKAGE_LIST_HEADER *PackageList;
- UINT8 *Package;
-
- //
- // Add 4 bytes to the header for entire length for HiiLibPreparePackageList use only.
- // Looks ugly. Might be updated when font tool is ready.
- //
- PackageLength = sizeof (EFI_HII_SIMPLE_FONT_PACKAGE_HDR) + FontSize + 4;
- Package = AllocateZeroPool (PackageLength);
- if (Package == NULL) {
- return EFI_OUT_OF_RESOURCES;
- }
- CopyMem (Package, &PackageLength, 4);
- SimplifiedFont = (EFI_HII_SIMPLE_FONT_PACKAGE_HDR*) (Package + 4);
- SimplifiedFont->Header.Length = (UINT32) (PackageLength - 4);
- SimplifiedFont->Header.Type = EFI_HII_PACKAGE_SIMPLE_FONTS;
- SimplifiedFont->NumberOfNarrowGlyphs = (UINT16) (FontSize / sizeof (EFI_NARROW_GLYPH));
-
- Location = (UINT8 *) (&SimplifiedFont->NumberOfWideGlyphs + 1);
- CopyMem (Location, FontBinary, FontSize);
-
- //
- // Add this simplified font package to a package list then install it.
- //
- PackageList = HiiLibPreparePackageList (1, GuidId, Package);
- Status = mHiiDatabaseProt->NewPackageList (mHiiDatabaseProt, PackageList, NULL, HiiHandle);
- ASSERT_EFI_ERROR (Status);
- SafeFreePool (PackageList);
- SafeFreePool (Package);
-
- return EFI_SUCCESS;
-}
-
VOID
EFIAPI
HiiLibRemovePackages (