OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
BitmapFont.c File Reference
#include <Base.h>
#include <Library/BaseMemoryLib.h>
#include <Library/BaseOverflowLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include "OpenCanopy.h"
#include "BmfLib.h"
#include "GuiApp.h"

Go to the source code of this file.

Data Structures

struct  BMF_TEXT_INFO
 

Functions

CONST BMF_CHARBmfGetChar (IN CONST BMF_CONTEXT *Context, IN UINT32 Char)
 
CONST BMF_KERNING_PAIRBmfGetKerningPair (IN CONST BMF_CONTEXT *Context, IN CHAR16 Char1, IN CHAR16 Char2)
 
BOOLEAN BmfContextInitialize (OUT BMF_CONTEXT *Context, IN CONST VOID *FileBuffer, IN UINT32 FileSize)
 
BMF_TEXT_INFOBmfGetTextInfo (IN CONST BMF_CONTEXT *Context, IN CONST CHAR16 *String, IN UINTN StringLen, IN UINT8 PosX, IN UINT8 PosY)
 
STATIC VOID BlendMem (EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Dst, EFI_GRAPHICS_OUTPUT_BLT_PIXEL *AlphaSrc, EFI_GRAPHICS_OUTPUT_BLT_PIXEL *Color, UINTN PixelCount)
 
BOOLEAN GuiGetLabel (OUT GUI_IMAGE *LabelImage, IN CONST GUI_FONT_CONTEXT *Context, IN CONST CHAR16 *String, IN UINTN StringLen, IN BOOLEAN Inverted)
 
BOOLEAN GuiFontConstruct (OUT GUI_FONT_CONTEXT *Context, IN VOID *FontImage, IN UINTN FontImageSize, IN VOID *FileBuffer, IN UINT32 FileSize, IN UINT8 Scale)
 
VOID GuiFontDestruct (IN GUI_FONT_CONTEXT *Context)
 

Variables

STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL mBlack = { 0, 0, 0, 255 }
 
STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL mWhite = { 255, 255, 255, 255 }
 

Detailed Description

This file is part of OpenCanopy, OpenCore GUI.

Copyright (c) 2018-2019, Download-Fritz. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file BitmapFont.c.

Function Documentation

◆ BlendMem()

STATIC VOID BlendMem ( EFI_GRAPHICS_OUTPUT_BLT_PIXEL * Dst,
EFI_GRAPHICS_OUTPUT_BLT_PIXEL * AlphaSrc,
EFI_GRAPHICS_OUTPUT_BLT_PIXEL * Color,
UINTN PixelCount )

Definition at line 585 of file BitmapFont.c.

◆ BmfContextInitialize()

BOOLEAN BmfContextInitialize ( OUT BMF_CONTEXT * Context,
IN CONST VOID * FileBuffer,
IN UINT32 FileSize )

Definition at line 147 of file BitmapFont.c.

◆ BmfGetChar()

CONST BMF_CHAR * BmfGetChar ( IN CONST BMF_CONTEXT * Context,
IN UINT32 Char )

Definition at line 20 of file BitmapFont.c.

◆ BmfGetKerningPair()

CONST BMF_KERNING_PAIR * BmfGetKerningPair ( IN CONST BMF_CONTEXT * Context,
IN CHAR16 Char1,
IN CHAR16 Char2 )

Definition at line 71 of file BitmapFont.c.

◆ BmfGetTextInfo()

BMF_TEXT_INFO * BmfGetTextInfo ( IN CONST BMF_CONTEXT * Context,
IN CONST CHAR16 * String,
IN UINTN StringLen,
IN UINT8 PosX,
IN UINT8 PosY )

Definition at line 480 of file BitmapFont.c.

◆ GuiFontConstruct()

BOOLEAN GuiFontConstruct ( OUT GUI_FONT_CONTEXT * Context,
IN VOID * FontImage,
IN UINTN FontImageSize,
IN VOID * FileBuffer,
IN UINT32 FileSize,
IN UINT8 Scale )

Definition at line 718 of file BitmapFont.c.

◆ GuiFontDestruct()

VOID GuiFontDestruct ( IN GUI_FONT_CONTEXT * Context)

Definition at line 765 of file BitmapFont.c.

◆ GuiGetLabel()

BOOLEAN GuiGetLabel ( OUT GUI_IMAGE * LabelImage,
IN CONST GUI_FONT_CONTEXT * Context,
IN CONST CHAR16 * String,
IN UINTN StringLen,
IN BOOLEAN Inverted )

Definition at line 609 of file BitmapFont.c.

Variable Documentation

◆ mBlack

STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL mBlack = { 0, 0, 0, 255 }

Definition at line 577 of file BitmapFont.c.

◆ mWhite

STATIC EFI_GRAPHICS_OUTPUT_BLT_PIXEL mWhite = { 255, 255, 255, 255 }

Definition at line 581 of file BitmapFont.c.