Skip to content

Commit

Permalink
Hack to refresh screen fonts list
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperDisk committed Apr 3, 2024
1 parent 7c642f2 commit aed1006
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/trackergrid.pas
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,11 @@ constructor TTrackerGrid.Create(
begin
inherited Create(AOwner);

// The LCL only populates the screen's font list once. Since we're
// dynamically adding fonts at startup, we need to refresh this list.

Screen.Fonts.Clear;

FFontSize := 12;

Self.PatternMap := PatternMap;
Expand Down

0 comments on commit aed1006

Please sign in to comment.