/src/serenity/Userland/Libraries/LibWeb/Platform/FontPlugin.cpp
Line | Count | Source (jump to first uncovered line) |
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 | | |
9 | | namespace Web::Platform { |
10 | | |
11 | | static FontPlugin* s_the; |
12 | | |
13 | | FontPlugin& FontPlugin::the() |
14 | 0 | { |
15 | 0 | VERIFY(s_the); |
16 | 0 | return *s_the; |
17 | 0 | } |
18 | | |
19 | | void FontPlugin::install(FontPlugin& plugin) |
20 | 0 | { |
21 | 0 | VERIFY(!s_the); |
22 | 0 | s_the = &plugin; |
23 | 0 | } |
24 | | |
25 | 0 | FontPlugin::~FontPlugin() = default; |
26 | | |
27 | | } |