Serenity Operating System
1/*
2 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#include <LibWeb/Platform/FontPlugin.h>
8
9namespace Web::Platform {
10
11static FontPlugin* s_the;
12
13FontPlugin& FontPlugin::the()
14{
15 VERIFY(s_the);
16 return *s_the;
17}
18
19void FontPlugin::install(FontPlugin& plugin)
20{
21 VERIFY(!s_the);
22 s_the = &plugin;
23}
24
25FontPlugin::~FontPlugin() = default;
26
27}