Changeset View
Changeset View
Standalone View
Standalone View
src/fonts/kfontutils.cpp
1 | /********************************************************************************* | 1 | /* | ||
---|---|---|---|---|---|
2 | * * | 2 | SPDX-FileCopyrightText: 2005, 2009, 2014 Albert Astals Cid <aacid@kde.org> | ||
3 | * Copyright (C) 2005, 2009, 2014 by Albert Astals Cid <aacid@kde.org> * | 3 | | ||
4 | * * | 4 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL | ||
5 | * This library is free software; you can redistribute it and/or * | 5 | */ | ||
6 | * modify it under the terms of the GNU Lesser General Public * | | |||
7 | * License as published by the Free Software Foundation; either * | | |||
8 | * version 2.1 of the License, or (at your option) version 3, or any * | | |||
9 | * later version accepted by the membership of KDE e.V. (or its * | | |||
10 | * successor approved by the membership of KDE e.V.), which shall * | | |||
11 | * act as a proxy defined in Section 6 of version 3 of the license. * | | |||
12 | * * | | |||
13 | * This library is distributed in the hope that it will be useful, * | | |||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | | |||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * | | |||
16 | * Lesser General Public License for more details. * | | |||
17 | * * | | |||
18 | * You should have received a copy of the GNU Lesser General Public * | | |||
19 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. * | | |||
20 | * * | | |||
21 | *********************************************************************************/ | | |||
22 | 6 | | |||
23 | #include "kfontutils.h" | 7 | #include "kfontutils.h" | ||
24 | 8 | | |||
25 | #include <qmath.h> | 9 | #include <qmath.h> | ||
26 | #include <qpainter.h> | 10 | #include <qpainter.h> | ||
27 | 11 | | |||
28 | static bool checkFits(QPainter &painter, const QString &string, qreal width, qreal height, qreal size, KFontUtils::AdaptFontSizeOptions flags) | 12 | static bool checkFits(QPainter &painter, const QString &string, qreal width, qreal height, qreal size, KFontUtils::AdaptFontSizeOptions flags) | ||
29 | { | 13 | { | ||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |