Warning, file /plasma/plasma-workspace/kcms/fonts/previewrenderengine.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2018 Julian Wolff <wolff@julianwolff.de> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "FcEngine.h" 0010 #include "kxftconfig.h" 0011 0012 #ifdef HAVE_FONTCONFIG 0013 0014 #include <QImage> 0015 0016 class PreviewRenderEngine : public KFI::CFcEngine 0017 { 0018 public: 0019 PreviewRenderEngine(bool init = true); 0020 ~PreviewRenderEngine() override; 0021 0022 QImage drawAutoSize(const QFont &font, const QColor &txt, const QColor &bgnd, const QString &text); 0023 }; 0024 0025 #endif // HAVE_FONTCONFIG