mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
This provides a list of well-known directories containing font files, e.g. for use with Gfx::FontDatabase::load_all_fonts_from_path().
28 lines
739 B
C++
28 lines
739 B
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
* Copyright (c) 2023, Linus Groh <linusg@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Error.h>
|
|
#include <AK/Forward.h>
|
|
|
|
namespace Core {
|
|
|
|
class StandardPaths {
|
|
public:
|
|
static DeprecatedString home_directory();
|
|
static DeprecatedString desktop_directory();
|
|
static DeprecatedString documents_directory();
|
|
static DeprecatedString downloads_directory();
|
|
static DeprecatedString tempfile_directory();
|
|
static DeprecatedString config_directory();
|
|
static DeprecatedString data_directory();
|
|
static ErrorOr<DeprecatedString> runtime_directory();
|
|
static ErrorOr<Vector<String>> font_directories();
|
|
};
|
|
|
|
}
|