mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Ladybird: Load fonts via Core::Resource URIs instead of filesystem paths
This commit is contained in:
parent
e03357308c
commit
2e759656de
Notes:
sideshowbarker
2024-07-17 02:14:39 +09:00
Author: https://github.com/ADKaster
Commit: 2e759656de
Pull-request: https://github.com/SerenityOS/serenity/pull/21302
Reviewed-by: https://github.com/kleinesfilmroellchen
Reviewed-by: https://github.com/trflynn89
2 changed files with 5 additions and 5 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "Utilities.h"
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/Platform.h>
|
||||
#include <LibCore/ResourceImplementationFile.h>
|
||||
#include <LibCore/System.h>
|
||||
#include <LibFileSystem/FileSystem.h>
|
||||
|
||||
|
@ -39,6 +40,8 @@ void platform_init()
|
|||
return LexicalPath(app_dir).parent().append("share"sv).string();
|
||||
#endif
|
||||
}();
|
||||
|
||||
Core::ResourceImplementation::install(make<Core::ResourceImplementationFile>(MUST(String::formatted("{}/res", s_serenity_resource_root))));
|
||||
}
|
||||
|
||||
ErrorOr<Vector<String>> get_paths_for_helper_process(StringView process_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue