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