Skip to content

SIMPLE_FONT package in OptionROM code #3933

Answered by Kostr
Kostr asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to solve the problem using the GetGlyph function from the gEfiHiiFontProtocolGuid protocol. This function can return a Blt of the glyph.

Here is the example app that I've used to test how 'T' glyph is displayed on different UEFI firmwares:

EFI_STATUS
EFIAPI
UefiMain (
  IN EFI_HANDLE        ImageHandle,
  IN EFI_SYSTEM_TABLE  *SystemTable
  )
{
  EFI_HII_FONT_PROTOCOL  *gHiiFont = NULL;
  EFI_STATUS Status = gBS->LocateProtocol(&gEfiHiiFontProtocolGuid,
                                          NULL,
                                          (VOID **)&gHiiFont);
  if (EFI_ERROR(Status)) {
    Print(L"Error! Can't get gEfiHiiFontProtocolGuid\n");
    return Status;
  }

  EFI_IM…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kostr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant