summaryrefslogtreecommitdiff
path: root/IntelFrameworkPkg/Library
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-15 05:08:37 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-15 05:08:37 +0000
commita2b58cf3d212471dd604f2658f601c6fb855d3dc (patch)
tree920863da91068935f8e1bb438ecd9090b9d2df40 /IntelFrameworkPkg/Library
parentd1d249a7b68c774709c284267b5a498be07b851d (diff)
downloadedk2-platforms-a2b58cf3d212471dd604f2658f601c6fb855d3dc.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@4858 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkPkg/Library')
-rw-r--r--IntelFrameworkPkg/Library/FrameworkHiiLib/HiiLib.c36
1 files changed, 0 insertions, 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 (