messense/mupdf-rs

Investigating loading system fonts with fontkit-rs/fontdb

messense opened this issue · 2 comments

MuPDF does not, by default, make use of fonts present on the underlying system (for instance, on Windows, MuPDF will not look for fonts in C:/Windows/). Should you wish to implement this kind of ‘system font’ loading, however, MuPDF does provide hooks for this to be done. The fz_install_load_system_font_funcs call takes a set of function pointers that can be used for this purpose.

https://github.com/servo/font-kit
https://github.com/RazrFalcon/fontdb

Added a naive font-kit powered impl in 3c07251