11#include <Library/MemoryAllocationLib.h>
12#include <Library/DebugLib.h>
13#include <Library/BmpSupportLib.h>
25 EFI_GRAPHICS_OUTPUT_BLT_PIXEL *
Buffer;
35 Status = TranslateBmpToGopBlt (
43 if (EFI_ERROR (Status)) {
48 ASSERT ((UINT32)BmpHeight == BmpHeight);
49 ASSERT ((UINT32)BmpWidth == BmpWidth);
51 Image->Height = (UINT32)BmpHeight;
52 Image->Width = (UINT32)BmpWidth;
68 UINT32 FontMetricsSize;
75 DEBUG ((DEBUG_ERROR,
"./Bmf <FontImage> <FontMetrics>"));
81 Result =
GuiFontConstruct (&Context, FontImage, FontImageSize, FontMetrics, FontMetricsSize, 1);
83 DEBUG ((DEBUG_WARN,
"BMF: Helvetica failed\n"));
87 Result =
GuiGetLabel (&Label, &Context, L
"Time Machine HD",
L_STR_LEN (
"Time Machine HD"), FALSE);
89 DEBUG ((DEBUG_WARN,
"BMF: label failed\n"));
93 DEBUG ((DEBUG_WARN,
"Result: %u %u\n", Label.
Height, Label.
Width));
97 Status = TranslateGopBltToBmp (
104 if (EFI_ERROR (Status)) {
BOOLEAN GuiFontConstruct(OUT GUI_FONT_CONTEXT *Context, IN VOID *FontImage, IN UINTN FontImageSize, IN VOID *FileBuffer, IN UINT32 FileSize, IN UINT8 Scale)
BOOLEAN GuiGetLabel(OUT GUI_IMAGE *LabelImage, IN CONST GUI_FONT_CONTEXT *Context, IN CONST CHAR16 *String, IN UINTN StringLen, IN BOOLEAN Inverted)
EFI_STATUS GuiBmpToImage(IN OUT GUI_IMAGE *Image, IN VOID *BmpImage, IN UINTN BmpImageSize)
#define L_STR_LEN(String)
OC_TYPING_BUFFER_ENTRY Buffer[OC_TYPING_BUFFER_SIZE]
UINT8 * UserReadFile(IN CONST CHAR8 *FileName, OUT UINT32 *Size)
VOID UserWriteFile(IN CONST CHAR8 *FileName, IN CONST VOID *Data, IN UINT32 Size)
EFI_GRAPHICS_OUTPUT_BLT_PIXEL * Buffer