Skip to content

Commit

Permalink
Fixed: application crashes when path specified in Settings.FontDiscov…
Browse files Browse the repository at this point in the history
…eryPaths does not exist.
  • Loading branch information
MarcinZiabek committed Sep 6, 2024
1 parent 5de776e commit 6c8474a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/QuestPDF/Drawing/FontManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ ICollection<string> SearchFontFiles()

var applicationFiles = Settings
.FontDiscoveryPaths
.Where(Directory.Exists)
.Select(path => Directory.EnumerateFiles(path, "*.*", SearchOption.AllDirectories))
.SelectMany(file => file)
.Take(maxFilesToScan)
Expand Down
5 changes: 5 additions & 0 deletions Source/QuestPDF/Resources/ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,8 @@ Version 2024.7.3
- Introduced FontDiscoveryPaths setting for specifying directories for automatic font registration and improved font search performance.
- Updated native dependencies: from skia m126 to m128.
- Improved the exception message related to the "Any CPU" architecture incompatibility.


Version 2024.7.4
- Fixed: Color.FromRGB does not work as expected (creates color with full transparency),
- Fixed: application crashes when path specified in Settings.FontDiscoveryPaths does not exist.

0 comments on commit 6c8474a

Please sign in to comment.