Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
fix - reg - Fixed GetFigletFonts() returning incomplete list
Browse files Browse the repository at this point in the history
---

We've fixed a regression where GetFigletFonts() would not return a complete list of built-in fonts.

---

Type: fix
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Nov 5, 2023
1 parent 9f410bc commit c0cad61
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Figletize/FigletTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,8 @@ public static string[] GetFigletLines(string Text, FigletizeFont FigletFont)
public static Dictionary<string, FigletizeFont> GetFigletFonts()
{
Dictionary<string, FigletizeFont> fonts = new();
if (FigletizeFonts._fontByName.Count > 0)
{
// Fetch the cached version
fonts = new(FigletizeFonts._fontByName);
return fonts;
}

// Now, populate through all the built-in fonts
// Populate through all the built-in fonts
foreach (string fontName in FigletizeFonts._builtinFonts)
{
var font = FigletizeFonts.TryGetByName(fontName);
Expand Down

0 comments on commit c0cad61

Please sign in to comment.