/* * Copyright (c) 2025, blukai * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include namespace Gfx { GlobalFontConfig::GlobalFontConfig() { FcBool inited = FcInit(); VERIFY(inited); m_config = FcConfigGetCurrent(); FcConfigReference(m_config); } GlobalFontConfig::~GlobalFontConfig() { FcConfigDestroy(m_config); } GlobalFontConfig& GlobalFontConfig::the() { static GlobalFontConfig s_the; return s_the; } FcConfig* GlobalFontConfig::get() { return m_config; } }