2022-09-08 11:55:12 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Vector.h>
|
|
|
|
|
#include <LibWeb/Platform/FontPlugin.h>
|
|
|
|
|
|
2022-09-21 19:33:57 +01:00
|
|
|
namespace Web::Platform {
|
2022-09-08 11:55:12 +02:00
|
|
|
|
2022-09-21 19:33:57 +01:00
|
|
|
class FontPluginSerenity final : public FontPlugin {
|
2022-09-08 11:55:12 +02:00
|
|
|
public:
|
|
|
|
|
FontPluginSerenity();
|
|
|
|
|
virtual ~FontPluginSerenity();
|
|
|
|
|
|
2022-09-17 21:25:50 +02:00
|
|
|
virtual Gfx::Font& default_font() override;
|
|
|
|
|
virtual Gfx::Font& default_fixed_width_font() override;
|
2023-09-06 07:45:47 +02:00
|
|
|
virtual FlyString generic_font_name(GenericFont) override;
|
2022-09-08 11:55:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|