]>
Commit | Line | Data |
---|---|---|
4259256b | 1 | /**@file\r |
2 | \r | |
3 | This file contains the Glyph related function.\r | |
4 | \r | |
5 | Copyright (c) 2006 - 2008, Intel Corporation\r | |
6 | All rights reserved. This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | \r | |
17 | #include "HiiDatabase.h"\r | |
18 | \r | |
19 | EFI_STATUS\r | |
20 | EFIAPI\r | |
21 | HiiGetGlyph (\r | |
22 | IN EFI_HII_PROTOCOL *This,\r | |
23 | IN CHAR16 *Source,\r | |
24 | IN OUT UINT16 *Index,\r | |
25 | OUT UINT8 **GlyphBuffer,\r | |
26 | OUT UINT16 *BitWidth,\r | |
27 | IN OUT UINT32 *InternalStatus\r | |
28 | )\r | |
29 | /*++\r | |
30 | \r | |
31 | Routine Description:\r | |
32 | Translates a Unicode character into the corresponding font glyph.\r | |
33 | If the Source was pointing to a non-spacing character, the next Source[*Index]\r | |
34 | character will be parsed and OR'd to the GlyphBuffer until a spacing character\r | |
35 | is found in the Source. Since non-spacing characters are considered to be the\r | |
36 | same pixel width as a regular character their BitWidth will be reflected correctly\r | |
37 | however due to their special attribute, they are considered to be zero advancing width.\r | |
38 | This basically means that the cursor would not advance, thus the character that follows\r | |
39 | it would overlay the non-spacing character. The Index is modified to reflect both the\r | |
40 | incoming array entry into the Source string but also the outgoing array entry after having\r | |
41 | parsed the equivalent of a single Glyph's worth of data.\r | |
42 | \r | |
43 | Arguments:\r | |
44 | \r | |
45 | Returns:\r | |
46 | \r | |
47 | --*/\r | |
48 | {\r | |
49 | ASSERT (FALSE);\r | |
50 | return EFI_SUCCESS;\r | |
51 | }\r | |
52 | \r | |
53 | EFI_STATUS\r | |
54 | EFIAPI\r | |
55 | HiiGlyphToBlt (\r | |
56 | IN EFI_HII_PROTOCOL *This,\r | |
57 | IN UINT8 *GlyphBuffer,\r | |
58 | IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL Foreground,\r | |
59 | IN EFI_GRAPHICS_OUTPUT_BLT_PIXEL Background,\r | |
60 | IN UINTN Count,\r | |
61 | IN UINTN Width,\r | |
62 | IN UINTN Height,\r | |
63 | IN OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer\r | |
64 | )\r | |
65 | {\r | |
66 | ASSERT (FALSE);\r | |
67 | return EFI_SUCCESS;\r | |
68 | }\r |