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_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 Routine to export glyphs to the HII database. This is in addition to whatever is defined in the Graphics Console driver.
262 return HiiAddPackages (
271 Get next language from language code list (with separator ';').
273 If LangCode is NULL, then ASSERT.
274 If Lang is NULL, then ASSERT.
276 @param LangCode On input: point to first language in the list. On
277 output: point to next language in the list, or
278 NULL if no more language in the list.
279 @param Lang The first language in the list.
285 IN OUT CHAR8
**LangCode
,
292 ASSERT (LangCode
!= NULL
);
293 ASSERT (*LangCode
!= NULL
);
294 ASSERT (Lang
!= NULL
);
297 StringPtr
= *LangCode
;
298 while (StringPtr
[Index
] != 0 && StringPtr
[Index
] != ';') {
302 CopyMem (Lang
, StringPtr
, Index
);
305 if (StringPtr
[Index
] == ';') {
308 *LangCode
= StringPtr
+ Index
;