summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfont.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2023-10-11 11:29:14 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-10-20 21:37:11 +0200
commit19bc5de296a221282ea07d9a1b28c98214109ee9 (patch)
treefa484ad5a1f4dbee9ba1e0326ba5495c79aa191f /src/gui/text/qfont.cpp
parent61ceff89f79f277ee1050b2633b9e3bfee1a876c (diff)
Remove obsolete font tag helpers and \preliminary tag from documentation
Fixes: QTBUG-117046 Change-Id: I7e68298ba1c52bea9bdc2fca0c1f082df76d952e Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/gui/text/qfont.cpp')
-rw-r--r--src/gui/text/qfont.cpp55
1 files changed, 6 insertions, 49 deletions
diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp
index 04ead4468e..aca710eb04 100644
--- a/src/gui/text/qfont.cpp
+++ b/src/gui/text/qfont.cpp
@@ -2364,9 +2364,8 @@ std::optional<QFont::Tag> QFont::Tag::fromString(QAnyStringView view) noexcept
*/
/*!
- \since 6.6
+ \since 6.7
\overload
- \preliminary
Applies an integer value to the typographical feature specified by \a tag when shaping the
text. This provides advanced access to the font shaping process, and can be used to support
@@ -2410,9 +2409,8 @@ void QFont::setFeature(Tag tag, quint32 value)
}
/*!
- \since 6.6
+ \since 6.7
\overload
- \preliminary
Unsets the \a tag from the map of explicitly enabled/disabled features.
@@ -2435,8 +2433,7 @@ void QFont::unsetFeature(Tag tag)
}
/*!
- \since 6.6
- \preliminary
+ \since 6.7
Returns a list of tags for all font features currently set on this QFont.
@@ -2450,8 +2447,7 @@ QList<QFont::Tag> QFont::featureTags() const
}
/*!
- \since 6.6
- \preliminary
+ \since 6.7
Returns the value set for a specific feature \a tag. If the tag has not been set, 0 will be
returned instead.
@@ -2466,8 +2462,7 @@ quint32 QFont::featureValue(Tag tag) const
}
/*!
- \since 6.6
- \preliminary
+ \since 6.7
Returns true if a value for the feature given by \a tag has been set on the QFont, otherwise
returns false.
@@ -2482,8 +2477,7 @@ bool QFont::isFeatureSet(Tag tag) const
}
/*!
- \since 6.6
- \preliminary
+ \since 6.7
Clears any previously set features on the QFont.
@@ -2496,43 +2490,6 @@ void QFont::clearFeatures()
d->features.clear();
}
-/*!
- \since 6.6
- \internal
-
- Returns the decoded name for \a tag as defined in the OpenType font specification. The tag
- is decoded into four 8 bit characters. For valid tags, each will be in the basic Latin range of
- 0x20 to 0x7E.
-
- \sa setFeature(), unsetFeature(), featureTags(), featureValue()
-*/
-QByteArray QFont::tagToString(quint32 tag)
-{
- if (auto maybeTag = QFont::Tag::fromValue(tag))
- return maybeTag->toString();
- return {};
-}
-
-/*!
- \since 6.6
- \internal
-
- Returns the encoded tag for \a name as defined in the OpenType font specification. The name
- must be a null-terminated string of four characters exactly, and in order to be a valid tag,
- each character must be in the basic Latin range of 0x20 to 0x7E.
-
- The function returns 0 for strings of the wrong length, but does not otherwise check the input
- for validity.
-
- \sa setFeature(), unsetFeature(), featureTags(), featureValue()
-*/
-quint32 QFont::stringToTag(const char *name)
-{
- if (auto maybeTag = QFont::Tag::fromString(name))
- return maybeTag->value();
- return 0;
-}
-
extern QStringList qt_fallbacksForFamily(const QString &family, QFont::Style style,
QFont::StyleHint styleHint, QChar::Script script);