diff --git a/Meta/Lagom/Contrib/MacPDF/AppDelegate.mm b/Meta/Lagom/Contrib/MacPDF/AppDelegate.mm index 6d33ebae34..364d48ecb7 100644 --- a/Meta/Lagom/Contrib/MacPDF/AppDelegate.mm +++ b/Meta/Lagom/Contrib/MacPDF/AppDelegate.mm @@ -6,7 +6,7 @@ #import "AppDelegate.h" -#include +#include @interface AppDelegate () @property (strong) IBOutlet NSWindow* window; @@ -23,7 +23,7 @@ for (int i = 0; i < 7; ++i) source_root = [source_root stringByDeletingLastPathComponent]; auto source_root_string = DeprecatedString([source_root UTF8String]); - Gfx::FontDatabase::set_default_fonts_lookup_path(DeprecatedString::formatted("{}/Base/res/fonts", source_root_string)); + Core::ResourceImplementation::install(make(MUST(String::formatted("{}/Base/res", source_root_string)))); } - (void)applicationWillTerminate:(NSNotification*)aNotification