richard-scryber / scryber.core

Scryber.Core is a dotnet 6 html to pdf engine written entirely in C# for creating beautiful flowing documents from html templates including css styles, object data binding and svg drawing.
Other
194 stars 31 forks source link

Invalid loading of the generic (sans-serif, serif, etc.) font files causes a 'Cannot Measure Strings' exception #47

Closed richard-scryber closed 3 years ago

richard-scryber commented 3 years ago

Describe the bug The generic fonts are not using the resource font files properly and then you get an error raised that the font 'Cannot Measure the String'

Expected behavior All ttf fonts should be able to be used to measure strings.

Additional context Does not happen with downloads or explicitly included fonts.

richard-scryber commented 3 years ago

This is currently in testing on package 5.0.6.1-beta