]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Protocol/HiiFont.h
Add parameter checking for PCI IO protocol according to UEFI spec.
[mirror_edk2.git] / MdePkg / Include / Protocol / HiiFont.h
CommitLineData
d1f95000 1/** @file\r
2 The file provides services to retrieve font information.\r
3 \r
4 Copyright (c) 2006 - 2007, Intel Corporation\r
5 All rights reserved. This program and the accompanying materials \r
6 are licensed and made available under the terms and conditions of the BSD License \r
7 which accompanies this distribution. The full text of the license may be found at \r
8 http://opensource.org/licenses/bsd-license.php \r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
d1f95000 13**/\r
14\r
15#ifndef __HII_FONT_H__\r
16#define __HII_FONT_H__\r
17\r
5a1fc221 18#include <Protocol/GraphicsOutput.h>\r
d1f95000 19#include <Protocol/HiiImage.h>\r
20\r
21#define EFI_HII_FONT_PROTOCOL_GUID \\r
22{ 0xe9ca4775, 0x8657, 0x47fc, { 0x97, 0xe7, 0x7e, 0xd6, 0x5a, 0x8, 0x43, 0x24 } }\r
23\r
24typedef struct _EFI_HII_FONT_PROTOCOL EFI_HII_FONT_PROTOCOL;\r
25\r
5a1fc221 26typedef VOID *EFI_FONT_HANDLE;\r
d1f95000 27\r
28//\r
29// EFI_HII_OUT_FLAGS\r
30// \r
31typedef UINT32 EFI_HII_OUT_FLAGS;\r
32#define EFI_HII_OUT_FLAG_CLIP 0x00000001\r
33#define EFI_HII_OUT_FLAG_WRAP 0x00000002\r
34#define EFI_HII_OUT_FLAG_CLEAN_Y 0x00000004\r
35#define EFI_HII_OUT_FLAG_CLEAN_X 0x00000008\r
36#define EFI_HII_OUT_FLAG_TRANSPARENT 0x00000010\r
37#define EFI_HII_IGNORE_IF_NO_GLYPH 0x00000020\r
38#define EFI_HII_IGNORE_LINE_BREAK 0x00000040\r
39#define EFI_HII_DIRECT_TO_SCREEN 0x00000080\r
40\r
41/**\r
42\r
43 Definition of EFI_HII_ROW_INFO.\r
44\r
45 @param StartIndex The index of the first character in the\r
46 string which is displayed on the line.\r
47\r
48 @param EndIndex The index of the last character in the string\r
49 which is displayed on the line. If this is the\r
50 same as StartIndex, then no characters are\r
51 displayed.\r
52\r
53 @param LineHeight The height of the line, in pixels.\r
54\r
55 @param LineWidth The width of the text on the line, in\r
56 pixels.\r
57\r
58 @param BaselineOffset The number of pixels above the bottom of\r
59 the row of the font baseline or 0 if\r
60 none.\r
61\r
62**/\r
63typedef struct _EFI_HII_ROW_INFO {\r
64 UINTN StartIndex;\r
65 UINTN EndIndex;\r
66 UINTN LineHeight;\r
67 UINTN LineWidth;\r
68 UINTN BaselineOffset;\r
69} EFI_HII_ROW_INFO;\r
70\r
71//\r
72// EFI_FONT_INFO_MASK\r
73// \r
74typedef UINT32 EFI_FONT_INFO_MASK;\r
75#define EFI_FONT_INFO_SYS_FONT 0x00000001\r
76#define EFI_FONT_INFO_SYS_SIZE 0x00000002\r
77#define EFI_FONT_INFO_SYS_STYLE 0x00000004\r
78#define EFI_FONT_INFO_SYS_FORE_COLOR 0x00000010\r
79#define EFI_FONT_INFO_SYS_BACK_COLOR 0x00000020\r
80#define EFI_FONT_INFO_RESIZE 0x00001000\r
81#define EFI_FONT_INFO_RESTYLE 0x00002000\r
82#define EFI_FONT_INFO_ANY_FONT 0x00010000\r
83#define EFI_FONT_INFO_ANY_SIZE 0x00020000\r
84#define EFI_FONT_INFO_ANY_STYLE 0x00040000\r
85\r
86//\r
87// EFI_FONT_INFO\r
88// \r
89typedef struct {\r
90 UINT32 FontStyle;\r
91 UINT16 FontSize;\r
92 CHAR16 FontName[1];\r
93} EFI_FONT_INFO;\r
94\r
95/**\r
96 This structure is used for describing the way in which a string\r
97 should be rendered in a particular font. FontInfo specifies the\r
98 basic font information and ForegroundColor and BackgroundColor\r
99 specify the color in which they should be displayed. The flags\r
100 in FontInfoMask describe where the system default should be\r
101 supplied instead of the specified information. The flags also\r
102 describe what options can be used to make a match between the\r
103 font requested and the font available. If EFI_FONT_INFO_SYS_FONT\r
104 is specified, then the font name in FontInfo is ignored and the\r
105 system font name is used. This flag cannot be used with\r
106 EFI_FONT_INFO_ANY_FONT. If EFI_FONT_INFO_SYS_SIZE is specified,\r
107 then the font height specified in FontInfo is ignored and the\r
108 system font height is used instead. This flag cannot be used\r
109 with EFI_FONT_INFO_ANY_SIZE. If EFI_FONT_INFO_SYS_STYLE is\r
110 specified, then the font style in FontInfo is ignored and the\r
111 system font style is used. This flag cannot be used with\r
112 EFI_FONT_INFO_ANY_STYLE. If EFI_FONT_INFO_SYS_FORE_COLOR is\r
113 specified, then ForegroundColor is ignored and the system\r
114 foreground color is used. If EFI_FONT_INFO_SYS_BACK_COLOR is\r
115 specified, then BackgroundColor is ignored and the system\r
116 background color is used. If EFI_FONT_INFO_RESIZE is specified,\r
117 then the system may attempt to stretch or shrink a font to meet\r
118 the size requested. This flag cannot be used with\r
119 EFI_FONT_INFO_ANY_SIZE. If EFI_FONT_INFO_RESTYLE is specified,\r
120 then the system may attempt to remove some of the specified\r
121 styles in order to meet the style requested. This flag cannot be\r
122 used with EFI_FONT_INFO_ANY_STYLE. If EFI_FONT_INFO_ANY_FONT is\r
123 specified, then the system may attempt to match with any font.\r
124 This flag cannot be used with EFI_FONT_INFO_SYS_FONT. If\r
125 EFI_FONT_INFO_ANY_SIZE is specified, then the system may attempt\r
126 to match with any font size. This flag cannot be used with\r
127 EFI_FONT_INFO_SYS_SIZE or EFI_FONT_INFO_RESIZE. If\r
128 EFI_FONT_INFO_ANY_STYLE is specified, then the system may\r
129 attempt to match with any font style. This flag cannot be used\r
130 with EFI_FONT_INFO_SYS_STYLE or EFI_FONT_INFO_RESTYLE.\r
131\r
132 @param FontInfo Points to the font information or NULL if the\r
133 string should use the default system font.\r
134 \r
135 @param ForegroundColor The color of the "on" pixels in the\r
136 glyph in the bitmap.\r
137 \r
138 @param BackgroundColor The color of the "off" pixels in the\r
139 glyph in the bitmap.\r
140 \r
141 @param FontInfoMask The font information mask determines\r
142 which portion of the font information\r
143 will be used and what to do if the\r
144 specific font is not available.\r
145 \r
146**/\r
147typedef struct _EFI_FONT_DISPLAY_INFO {\r
d1f95000 148 EFI_GRAPHICS_OUTPUT_BLT_PIXEL ForegroundColor;\r
149 EFI_GRAPHICS_OUTPUT_BLT_PIXEL BackgroundColor;\r
150 EFI_FONT_INFO_MASK FontInfoMask;\r
5a1fc221 151 EFI_FONT_INFO FontInfo; \r
d1f95000 152} EFI_FONT_DISPLAY_INFO;\r
153\r
154/**\r
155\r
156 This function renders a string to a bitmap or the screen using\r
157 the specified font, color and options. It either draws the\r
158 string and glyphs on an existing bitmap, allocates a new bitmap\r
159 or uses the screen. The strings can be clipped or wrapped.\r
160 Optionally, the function also returns the information about each\r
161 row and the character position on that row. If\r
162 EFI_HII_OUT_FLAG_CLIP is set, then text will be formatted only\r
163 based on explicit line breaks and all pixels which would lie\r
164 outside the bounding box specified by Width and Height are\r
165 ignored. The information in the RowInfoArray only describes\r
166 characters which are at least partially displayed. For the final\r
167 row, the LineHeight and BaseLine may describe pixels which are\r
168 outside the limit specified by Height (unless\r
169 EFI_HII_OUT_FLAG_CLIP_CLEAN_Y is specified) even though those\r
170 pixels were not drawn. The LineWidth may describe pixels which\r
171 are outside the limit specified by Width (unless\r
172 EFI_HII_OUT_FLAG_CLIP_CLEAN_X is specified) even though those\r
173 pixels were not drawn. If EFI_HII_OUT_FLAG_CLIP_CLEAN_X is set,\r
174 then it modifies the behavior of EFI_HII_OUT_FLAG_CLIP so that\r
175 if a character????s right-most on pixel cannot fit, then it will\r
176 not be drawn at all. This flag requires that\r
177 EFI_HII_OUT_FLAG_CLIP be set. If EFI_HII_OUT_FLAG_CLIP_CLEAN_Y\r
178 is set, then it modifies the behavior of EFI_HII_OUT_FLAG_CLIP\r
179 so that if a row????s bottom-most pixel cannot fit, then it will\r
180 not be drawn at all. This flag requires that\r
181 EFI_HII_OUT_FLAG_CLIP be set. If EFI_HII_OUT_FLAG_WRAP is set,\r
182 then text will be wrapped at the right-most line-break\r
183 opportunity prior to a character whose right-most extent would\r
184 exceed Width. If no line-break opportunity can be found, then\r
185 the text will behave as if EFI_HII_OUT_FLAG_CLIP_CLEAN_X is set.\r
186 This flag cannot be used with EFI_HII_OUT_FLAG_CLIP_CLEAN_X. If\r
187 EFI_HII_OUT_FLAG_TRANSPARENT is set, then BackgroundColor is\r
188 ignored and all ????off???? pixels in the character????s drawn\r
189 will use the pixel value from Blt. This flag cannot be used if\r
190 Blt is NULL upon entry. If EFI_HII_IGNORE_IF_NO_GLYPH is set,\r
191 then characters which have no glyphs are not drawn. Otherwise,\r
192 they are replaced with Unicode character 0xFFFD (REPLACEMENT\r
193 CHARACTER). If EFI_HII_IGNORE_LINE_BREAK is set, then explicit\r
194 line break characters will be ignored. If\r
195 EFI_HII_DIRECT_TO_SCREEN is set, then the string will be written\r
196 directly to the output device specified by Screen. Otherwise the\r
197 string will be rendered to the bitmap specified by Bitmap.\r
198\r
199 @param This A pointer to the EFI_HII_FONT_PROTOCOL instance.\r
200\r
201 @param Flags Describes how the string is to be drawn.\r
202\r
203 @param String Points to the null-terminated string to be\r
204 displayed.\r
205\r
206 @param StringInfo Points to the string output information,\r
207 including the color and font. If NULL, then\r
208 the string will be output in the default\r
209 system font and color.\r
210\r
211 @param Blt If this points to a non-NULL on entry, this points\r
212 to the image, which is Width pixels wide and\r
213 Height pixels high. The string will be drawn onto\r
214 this image and EFI_HII_OUT_FLAG_CLIP is implied.\r
215 If this points to a NULL on entry, then a buffer\r
216 will be allocated to hold the generated image and\r
217 the pointer updated on exit. It is the caller's\r
218 responsibility to free this buffer.\r
219\r
220 @param BltX, BltY Specifies the offset from the left and top\r
221 edge of the image of the first character\r
222 cell in the image.\r
223\r
224 @param RowInfoArray If this is non-NULL on entry, then on\r
225 exit, this will point to an allocated buffer\r
226 containing row information and\r
227 RowInfoArraySize will be updated to contain\r
228 the number of elements. This array describes\r
229 the characters which were at least partially\r
230 drawn and the heights of the rows. It is the\r
231 caller's responsibility to free this buffer.\r
232\r
233 @param RowInfoArraySize If this is non-NULL on entry, then on\r
234 exit it contains the number of\r
235 elements in RowInfoArray.\r
236\r
237 @param ColumnInfoArray If this is non-NULL, then on return it\r
238 will be filled with the horizontal\r
239 offset for each character in the\r
240 string on the row where it is\r
241 displayed. Non-printing characters\r
242 will have the offset ~0. The caller is\r
243 responsible to allocate a buffer large\r
244 enough so that there is one entry for\r
245 each character in the string, not\r
246 including the null-terminator. It is\r
247 possible when character display is\r
248 normalized that some character cells\r
249 overlap.\r
250\r
251 @retval EFI_SUCCESS The string was successfully updated.\r
252 \r
253 @retval EFI_OUT_OF_RESOURCES Unable to allocate an output\r
254 buffer for RowInfoArray or Blt.\r
255 \r
256 @retval EFI_INVALID_PARAMETER The String or Blt or Height or\r
257 Width was NULL.\r
258\r
259 \r
260**/\r
261typedef\r
262EFI_STATUS\r
263(EFIAPI *EFI_HII_STRING_TO_IMAGE) (\r
264 IN CONST EFI_HII_FONT_PROTOCOL *This,\r
7d582d6b 265 IN EFI_HII_OUT_FLAGS Flags,\r
d1f95000 266 IN CONST EFI_STRING String,\r
267 IN CONST EFI_FONT_DISPLAY_INFO *StringInfo,\r
268 IN OUT EFI_IMAGE_OUTPUT **Blt,\r
7d582d6b 269 IN UINTN BltX,\r
270 IN UINTN BltY,\r
d1f95000 271 OUT EFI_HII_ROW_INFO **RowInfoArray OPTIONAL,\r
272 OUT UINTN *RowInfoArraySize OPTIONAL,\r
273 OUT UINTN *ColumnInfoArray OPTIONAL\r
274);\r
275\r
276\r
277\r
278/**\r
279\r
280 This function renders a string as a bitmap or to the screen\r
281 and can clip or wrap the string. The bitmap is either supplied\r
282 by the caller or else is allocated by the function. The\r
283 strings are drawn with the font, size and style specified and\r
284 can be drawn transparently or opaquely. The function can also\r
285 return information about each row and each character's\r
286 position on the row. If EFI_HII_OUT_FLAG_CLIP is set, then\r
287 text will be formatted only based on explicit line breaks and\r
288 all pixels which would lie outside the bounding box specified\r
289 by Width and Height are ignored. The information in the\r
290 RowInfoArray only describes characters which are at least\r
291 partially displayed. For the final row, the LineHeight and\r
292 BaseLine may describe pixels which are outside the limit\r
293 specified by Height (unless EFI_HII_OUT_FLAG_CLIP_CLEAN_Y is\r
294 specified) even though those pixels were not drawn. If\r
295 EFI_HII_OUT_FLAG_CLIP_CLEAN_X is set, then it modifies the\r
296 behavior of EFI_HII_OUT_FLAG_CLIP so that if a character????s\r
297 right-most on pixel cannot fit, then it will not be drawn at\r
298 all. This flag requires that EFI_HII_OUT_FLAG_CLIP be set. If\r
299 EFI_HII_OUT_FLAG_CLIP_CLEAN_Y is set, then it modifies the\r
300 behavior of EFI_HII_OUT_FLAG_CLIP so that if a row????s bottom\r
301 most pixel cannot fit, then it will not be drawn at all. This\r
302 flag requires that EFI_HII_OUT_FLAG_CLIP be set. Draft for\r
303 Review HII Protocols Version 2.1 November 3, 2006 1285 If\r
304 EFI_HII_OUT_FLAG_WRAP is set, then text will be wrapped at the\r
305 right-most line-break opportunity prior to a character whose\r
306 right-most extent would exceed Width. If no line-break\r
307 opportunity can be found, then the text will behave as if\r
308 EFI_HII_OUT_FLAG_CLIP_CLEAN_X is set. This flag cannot be used\r
309 with EFI_HII_OUT_FLAG_CLIP_CLEAN_X. If\r
310 EFI_HII_OUT_FLAG_TRANSPARENT is set, then BackgroundColor is\r
ac644614 311 ignored and all off" pixels in the character's glyph will\r
d1f95000 312 use the pixel value from Blt. This flag cannot be used if Blt\r
313 is NULL upon entry. If EFI_HII_IGNORE_IF_NO_GLYPH is set, then\r
314 characters which have no glyphs are not drawn. Otherwise, they\r
315 are replaced with Unicode character 0xFFFD (REPLACEMENT\r
316 CHARACTER). If EFI_HII_IGNORE_LINE_BREAK is set, then explicit\r
317 line break characters will be ignored. If\r
318 EFI_HII_DIRECT_TO_SCREEN is set, then the string will be\r
319 written directly to the output device specified by Screen.\r
320 Otherwise the string will be rendered to the bitmap specified\r
321 by Bitmap.\r
322\r
323\r
324 @param This A pointer to the EFI_HII_FONT_PROTOCOL instance.\r
325\r
326 @param Flags Describes how the string is to be drawn.\r
327\r
328 @param PackageList The package list in the HII database to\r
329 search for the specified string.\r
330\r
331 @param StringId The string's id, which is unique within\r
332 PackageList.\r
333\r
334 @param Language Points to the language for the retrieved\r
335 string. If NULL, then the current system\r
336 language is used.\r
337\r
338 @param StringInfo Points to the string output information,\r
339 including the color and font. If NULL, then\r
340 the string will be output in the default\r
341 system font and color.\r
342\r
343 @param Blt If this points to a non-NULL on entry, this points\r
344 to the image, which is Width pixels wide and\r
345 Height pixels high. The string will be drawn onto\r
346 this image and EFI_HII_OUT_FLAG_CLIP is implied.\r
347 If this points to a NULL on entry, then a buffer\r
348 will be allocated to hold the generated image and\r
349 the pointer updated on exit. It is the caller's\r
350 responsibility to free this buffer.\r
351\r
352 @param BltX, BltY Specifies the offset from the left and top\r
353 edge of the output image of the first\r
354 character cell in the image.\r
355\r
356 @param RowInfoArray If this is non-NULL on entry, then on\r
357 exit, this will point to an allocated\r
358 buffer containing row information and\r
359 RowInfoArraySize will be updated to\r
360 contain the number of elements. This array\r
361 describes the characters which were at\r
362 least partially drawn and the heights of\r
363 the rows. It is the caller's\r
364 responsibility to free this buffer.\r
365\r
366 @param RowInfoArraySize If this is non-NULL on entry, then on\r
367 exit it contains the number of\r
368 elements in RowInfoArray.\r
369\r
370 @param ColumnInfoArray If non-NULL, on return it is filled\r
371 with the horizontal offset for each\r
372 character in the string on the row\r
373 where it is displayed. Non-printing\r
374 characters will have the offset ~0.\r
375 The caller is responsible to allocate\r
376 a buffer large enough so that there is\r
377 one entry for each character in the\r
378 string, not including the\r
379 null-terminator. It is possible when\r
380 character display is normalized that\r
381 some character cells overlap.\r
382\r
383\r
384 @retval EFI_SUCCESS The string was successfully updated.\r
385\r
386 @retval EFI_OUT_OF_RESOURCES Unable to allocate an output\r
387 buffer for RowInfoArray or Blt.\r
388\r
389 @retval EFI_INVALID_PARAMETER The String or Blt or Height or\r
390 Width was NULL.\r
391\r
392**/\r
393typedef\r
394EFI_STATUS\r
395(EFIAPI *EFI_HII_STRING_ID_TO_IMAGE) (\r
396 IN CONST EFI_HII_FONT_PROTOCOL *This,\r
7d582d6b 397 IN EFI_HII_OUT_FLAGS Flags,\r
398 IN EFI_HII_HANDLE PackageList,\r
399 IN EFI_STRING_ID StringId,\r
d1f95000 400 IN CONST CHAR8 *Language,\r
401 IN CONST EFI_FONT_DISPLAY_INFO *StringInfo OPTIONAL,\r
402 IN OUT EFI_IMAGE_OUTPUT **Blt,\r
7d582d6b 403 IN UINTN BltX,\r
404 IN UINTN BltY,\r
d1f95000 405 OUT EFI_HII_ROW_INFO **RowInfoArray OPTIONAL,\r
406 OUT UINTN *RowInfoArraySize OPTIONAL,\r
407 OUT UINTN *ColumnInfoArray OPTIONAL\r
408);\r
409\r
410\r
411/**\r
412\r
413 Convert the glyph for a single character into a bitmap.\r
414\r
415 @param This A pointer to the EFI_HII_FONT_PROTOCOL instance.\r
416\r
417 @param Char Character to retrieve.\r
418\r
419 @param StringInfo Points to the string font and color\r
420 information or NULL if the string should use\r
421 the default system font and color.\r
422\r
423 @param Blt Thus must point to a NULL on entry. A buffer will\r
424 be allocated to hold the output and the pointer\r
425 updated on exit. It is the caller's responsibility\r
426 to free this buffer.\r
427\r
428 @param Baseline Number of pixels from the bottom of the bitmap\r
429 to the baseline.\r
430\r
431\r
432 @retval EFI_SUCCESS Glyph bitmap created.\r
433\r
434 @retval EFI_OUT_OF_RESOURCES Unable to allocate the output\r
435 buffer Blt.\r
436\r
437 @retval EFI_WARN_UNKNOWN_GLYPH The glyph was unknown and was\r
438 replaced with the glyph for\r
439 Unicode character 0xFFFD.\r
440\r
441 @retval EFI_INVALID_PARAMETER Blt is NULL or Width is NULL or\r
442 Height is NULL\r
443\r
444\r
445**/\r
446typedef\r
447EFI_STATUS\r
448(EFIAPI *EFI_HII_GET_GLYPH) (\r
449 IN CONST EFI_HII_FONT_PROTOCOL *This,\r
450 IN CONST CHAR16 Char,\r
451 IN CONST EFI_FONT_DISPLAY_INFO *StringInfo,\r
452 OUT EFI_IMAGE_OUTPUT **Blt,\r
453 OUT UINTN *Baseline OPTIONAL\r
454);\r
455\r
456/**\r
457\r
458 This function iterates through fonts which match the specified\r
459 font, using the specified criteria. If String is non-NULL, then\r
460 all of the characters in the string must exist in order for a\r
461 candidate font to be returned.\r
462\r
463 @param This A pointer to the EFI_HII_FONT_PROTOCOL instance.\r
464\r
465 @param FontHandle On entry, points to the font handle returned\r
466 by a previous call to GetFontInfo() or NULL\r
467 to start with the first font. On return,\r
468 points to the returned font handle or points\r
469 to NULL if there are no more matching fonts.\r
470\r
471 @param StringInfoIn Upon entry, points to the font to return\r
472 information about.\r
473\r
474 @param StringInfoOut Upon return, contains the matching\r
475 font's information. If NULL, then no\r
476 information is returned.\r
477\r
478 @param String Points to the string which will be tested to\r
479 determine if all characters are available. If\r
480 NULL, then any font is acceptable.\r
481 \r
482 @retval EFI_SUCCESS Matching font returned successfully.\r
483 \r
484 @retval EFI_NOT_FOUND No matching font was found.\r
485 \r
486 @retval EFI_INVALID_PARAMETER FontHandle is NULL or\r
487 StringInfoIn is NULL\r
488 \r
489**/\r
490typedef\r
491EFI_STATUS\r
492(EFIAPI *EFI_HII_GET_FONT_INFO) (\r
493 IN CONST EFI_HII_FONT_PROTOCOL *This,\r
494 IN OUT EFI_FONT_HANDLE *FontHandle,\r
495 IN CONST EFI_FONT_DISPLAY_INFO *StringInfoIn,\r
5a1fc221 496 OUT EFI_FONT_DISPLAY_INFO **StringInfoOut,\r
497 IN CONST EFI_STRING String OPTIONAL\r
d1f95000 498);\r
499\r
500/**\r
501\r
502 The protocol provides the service to retrieve the font\r
503 informations;\r
504\r
505 @param StringToImage Render a string to a bitmap or to the\r
506 display.\r
507\r
508 @param StringIdToImage Render a string to a bitmap or to the\r
509 display.\r
510 @param GetGlyph Return a specific glyph in a specific font.\r
511\r
512 @param GetFontInfo Return font information for a specific\r
513 font.\r
514\r
515**/\r
516struct _EFI_HII_FONT_PROTOCOL {\r
517 EFI_HII_STRING_TO_IMAGE StringToImage;\r
518 EFI_HII_STRING_ID_TO_IMAGE StringIdToImage;\r
519 EFI_HII_GET_GLYPH GetGlyph;\r
520 EFI_HII_GET_FONT_INFO GetFontInfo;\r
521};\r
522\r
523extern EFI_GUID gEfiHiiFontProtocolGuid;\r
524\r
525\r
526#endif\r
527\r