File indexing completed on 2024-12-22 05:15:46
0001 /* 0002 SPDX-FileCopyrightText: 2023 Marco Martin <mart@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include <KConfigGroup> 0008 #include <KSharedConfig> 0009 #include <cstdlib> 0010 0011 #include <QCoreApplication> 0012 0013 /** 0014 * In plasma6 scaling is completely managed by the global scaling settings, both in Wayland and X11, 0015 * setting fonts dpi is not supported anymore and can lead to undesired results 0016 * 0017 * @since 6.0 0018 */ 0019 int main(int argc, char **argv) 0020 { 0021 QCoreApplication app(argc, argv); 0022 const KSharedConfigPtr configPtr = KSharedConfig::openConfig(QString::fromLatin1("kcmfonts"), KConfig::FullConfig); 0023 KConfigGroup cg(configPtr, QStringLiteral("General")); 0024 0025 cg.deleteEntry("forceFontDPIWayland"); 0026 0027 cg.sync(); 0028 0029 return EXIT_SUCCESS; 0030 }