4 Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include "FrontPage.h"
12 EFI_HII_HANDLE gStringPackHandle
;
14 EFI_GUID mUiStringPackGuid
= {
15 0x136a3048, 0x752a, 0x4bf6, { 0xa7, 0x57, 0x9, 0x36, 0x11, 0x95, 0x38, 0xed }
18 EFI_GUID mFontPackageGuid
= {
19 0x78941450, 0x90ab, 0x4fb1, { 0xb7, 0x5f, 0x58, 0x92, 0x14, 0xe2, 0x4a, 0xc }
22 #define NARROW_GLYPH_NUMBER 8
23 #define WIDE_GLYPH_NUMBER 75
27 /// This 4-bytes total array length is required by HiiAddPackages()
32 // This is the Font package definition
34 EFI_HII_PACKAGE_HEADER Header
;
35 UINT16 NumberOfNarrowGlyphs
;
36 UINT16 NumberOfWideGlyphs
;
37 EFI_NARROW_GLYPH NarrowArray
[NARROW_GLYPH_NUMBER
];
38 EFI_WIDE_GLYPH WideArray
[WIDE_GLYPH_NUMBER
];
41 FONT_PACK_BIN mFontBin
= {
42 sizeof (FONT_PACK_BIN
),
44 sizeof (FONT_PACK_BIN
) - sizeof (UINT32
),
45 EFI_HII_PACKAGE_SIMPLE_FONTS
,
254 Initialize HII global accessor for string support.
258 InitializeStringSupport (
262 gStringPackHandle
= HiiAddPackages (
268 ASSERT (gStringPackHandle
!= NULL
);
272 Remove the string package.
276 UninitializeStringSupport (
280 HiiRemovePackages (gStringPackHandle
);
284 Get string by string id from HII Interface
289 @retval CHAR16 * String from ID.
290 @retval NULL If error occurs.
298 return HiiGetString (gStringPackHandle
, Id
, NULL
);
302 Routine to export glyphs to the HII database. This is in addition to whatever is defined in the Graphics Console driver.
310 return HiiAddPackages (