This works on Fedora Linux for English texts (including Markdown formatting), but exposes the need for font fallbacks since the first font choice now supports fewer scripts.
This results in a very minor reduction of the file size of the gallery example (release build after stripping: from 13210680 to 12948200 bytes), and and much larger reduction in the dynamic lib dependencies (according to ldd, from 19 to 8).
@RazrFalcon this is one approach to https://github.com/RazrFalcon/fontdb/issues/11. Also, it would be nice if fontdb::Family would support PartialEq and Hash. Shall I make a PR regarding the latter (also against ttf_parser::Width)? Several other trait-derivations are possible too, e.g. Eq and on ttf_parser::Weight.
This works on Fedora Linux for English texts (including Markdown formatting), but exposes the need for font fallbacks since the first font choice now supports fewer scripts.
This results in a very minor reduction of the file size of the gallery example (release build after stripping: from 13210680 to 12948200 bytes), and and much larger reduction in the dynamic lib dependencies (according to ldd, from 19 to 8).
@RazrFalcon this is one approach to https://github.com/RazrFalcon/fontdb/issues/11. Also, it would be nice if
fontdb::Family
would supportPartialEq
andHash
. Shall I make a PR regarding the latter (also againstttf_parser::Width
)? Several other trait-derivations are possible too, e.g.Eq
and onttf_parser::Weight
.