- }\r
- break;\r
- //\r
- // If EFI_FONT_INFO_RESIZE is specified, then the sytem may attempt to\r
- // stretch or shrink a font to meet the size requested.\r
- //\r
- case EFI_FONT_INFO_ANY_FONT | EFI_FONT_INFO_RESIZE:\r
- if (GlobalFont->FontInfo->FontStyle == FontInfo->FontStyle) {\r
- if (GlobalFont->FontInfo->FontSize == FontInfo->FontSize) {\r
- Matched = TRUE;\r
- } else {\r
- VagueMatched1 = TRUE;\r
- GlobalFontBackup1 = GlobalFont;\r
- }\r
- }\r
- break;\r
- case EFI_FONT_INFO_ANY_FONT | EFI_FONT_INFO_RESTYLE | EFI_FONT_INFO_RESIZE:\r
- if (GlobalFont->FontInfo->FontStyle == FontInfo->FontStyle) {\r
- if (GlobalFont->FontInfo->FontSize == FontInfo->FontSize) {\r
- Matched = TRUE;\r
- } else {\r
- VagueMatched1 = TRUE;\r
- GlobalFontBackup1 = GlobalFont;\r
- }\r
- } else if ((GlobalFont->FontInfo->FontStyle & FontInfo->FontStyle) == FontInfo->FontStyle) {\r
- if (GlobalFont->FontInfo->FontSize == FontInfo->FontSize) {\r
- VagueMatched1 = TRUE;\r
- GlobalFontBackup1 = GlobalFont;\r
- } else {\r
- VagueMatched2 = TRUE;\r
- GlobalFontBackup2 = GlobalFont;\r
- }\r
- }\r
- break;\r
- case EFI_FONT_INFO_ANY_FONT | EFI_FONT_INFO_ANY_STYLE | EFI_FONT_INFO_RESIZE:\r
- if (GlobalFont->FontInfo->FontSize == FontInfo->FontSize) {\r
- Matched = TRUE;\r
- } else {\r
- VagueMatched1 = TRUE;\r
- GlobalFontBackup1 = GlobalFont;\r
- }\r
- break;\r
- case EFI_FONT_INFO_ANY_FONT | EFI_FONT_INFO_ANY_SIZE | EFI_FONT_INFO_RESTYLE:\r
- if (GlobalFont->FontInfo->FontStyle == FontInfo->FontStyle) {\r
- Matched = TRUE;\r
- } else if ((GlobalFont->FontInfo->FontStyle & FontInfo->FontStyle) == FontInfo->FontStyle) {\r
- VagueMatched1 = TRUE;\r
- GlobalFontBackup1 = GlobalFont;\r
- }\r
- break;\r
- case EFI_FONT_INFO_ANY_STYLE:\r
- if ((CompareMem (\r
- GlobalFont->FontInfo->FontName,\r
- FontInfo->FontName,\r
- StrSize (FontInfo->FontName)\r
- ) == 0) &&\r
- GlobalFont->FontInfo->FontSize == FontInfo->FontSize) {\r
- Matched = TRUE;\r
- }\r
- break;\r
- case EFI_FONT_INFO_ANY_STYLE | EFI_FONT_INFO_ANY_SIZE:\r
- if (CompareMem (\r
- GlobalFont->FontInfo->FontName,\r
- FontInfo->FontName,\r
- StrSize (FontInfo->FontName)\r
- ) == 0) {\r
- Matched = TRUE;\r
- }\r
- break;\r
- case EFI_FONT_INFO_ANY_STYLE | EFI_FONT_INFO_RESIZE:\r
- if (CompareMem (\r
- GlobalFont->FontInfo->FontName,\r
- FontInfo->FontName,\r
- StrSize (FontInfo->FontName)\r
- ) == 0) {\r
- if (GlobalFont->FontInfo->FontSize == FontInfo->FontSize) {\r
- Matched = TRUE;\r
- } else {\r
- VagueMatched1 = TRUE;\r
- GlobalFontBackup1 = GlobalFont;\r
- }\r
- }\r
- break;\r
- case EFI_FONT_INFO_ANY_SIZE:\r
- if ((CompareMem (\r
- GlobalFont->FontInfo->FontName,\r
- FontInfo->FontName,\r
- StrSize (FontInfo->FontName)\r
- ) == 0) &&\r
- GlobalFont->FontInfo->FontStyle == FontInfo->FontStyle) {\r
- Matched = TRUE;\r
- }\r
- break;\r
- case EFI_FONT_INFO_ANY_SIZE | EFI_FONT_INFO_RESTYLE:\r
- if (CompareMem (\r
- GlobalFont->FontInfo->FontName,\r
- FontInfo->FontName,\r
- StrSize (FontInfo->FontName)\r
- ) == 0) {\r