4 Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #include "FrontPage.h"
18 EFI_HII_HANDLE gStringPackHandle
;
20 EFI_GUID mUiStringPackGuid
= {
21 0x136a3048, 0x752a, 0x4bf6, { 0xa7, 0x57, 0x9, 0x36, 0x11, 0x95, 0x38, 0xed }
24 EFI_GUID mFontPackageGuid
= {
25 0x78941450, 0x90ab, 0x4fb1, {0xb7, 0x5f, 0x58, 0x92, 0x14, 0xe2, 0x4a, 0xc}
28 #define NARROW_GLYPH_NUMBER 8
29 #define WIDE_GLYPH_NUMBER 75
33 /// This 4-bytes total array length is required by HiiAddPackages()
38 // This is the Font package definition
40 EFI_HII_PACKAGE_HEADER Header
;
41 UINT16 NumberOfNarrowGlyphs
;
42 UINT16 NumberOfWideGlyphs
;
43 EFI_NARROW_GLYPH NarrowArray
[NARROW_GLYPH_NUMBER
];
44 EFI_WIDE_GLYPH WideArray
[WIDE_GLYPH_NUMBER
];
47 FONT_PACK_BIN mFontBin
= {
48 sizeof (FONT_PACK_BIN
),
50 sizeof (FONT_PACK_BIN
) - sizeof (UINT32
),
51 EFI_HII_PACKAGE_SIMPLE_FONTS
,
260 Initialize HII global accessor for string support.
264 InitializeStringSupport (
268 gStringPackHandle
= HiiAddPackages (
274 ASSERT (gStringPackHandle
!= NULL
);
278 Remove the string package.
282 UninitializeStringSupport (
286 HiiRemovePackages (gStringPackHandle
);
290 Get string by string id from HII Interface
295 @retval CHAR16 * String from ID.
296 @retval NULL If error occurs.
304 return HiiGetString (gStringPackHandle
, Id
, NULL
);
308 Routine to export glyphs to the HII database. This is in addition to whatever is defined in the Graphics Console driver.
316 return HiiAddPackages (