@@ -2364,9 +2364,8 @@ std::optional<QFont::Tag> QFont::Tag::fromString(QAnyStringView view) noexcept
2364
2364
*/
2365
2365
2366
2366
/* !
2367
- \since 6.6
2367
+ \since 6.7
2368
2368
\overload
2369
- \preliminary
2370
2369
2371
2370
Applies an integer value to the typographical feature specified by \a tag when shaping the
2372
2371
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)
2410
2409
}
2411
2410
2412
2411
/* !
2413
- \since 6.6
2412
+ \since 6.7
2414
2413
\overload
2415
- \preliminary
2416
2414
2417
2415
Unsets the \a tag from the map of explicitly enabled/disabled features.
2418
2416
@@ -2435,8 +2433,7 @@ void QFont::unsetFeature(Tag tag)
2435
2433
}
2436
2434
2437
2435
/* !
2438
- \since 6.6
2439
- \preliminary
2436
+ \since 6.7
2440
2437
2441
2438
Returns a list of tags for all font features currently set on this QFont.
2442
2439
@@ -2450,8 +2447,7 @@ QList<QFont::Tag> QFont::featureTags() const
2450
2447
}
2451
2448
2452
2449
/* !
2453
- \since 6.6
2454
- \preliminary
2450
+ \since 6.7
2455
2451
2456
2452
Returns the value set for a specific feature \a tag. If the tag has not been set, 0 will be
2457
2453
returned instead.
@@ -2466,8 +2462,7 @@ quint32 QFont::featureValue(Tag tag) const
2466
2462
}
2467
2463
2468
2464
/* !
2469
- \since 6.6
2470
- \preliminary
2465
+ \since 6.7
2471
2466
2472
2467
Returns true if a value for the feature given by \a tag has been set on the QFont, otherwise
2473
2468
returns false.
@@ -2482,8 +2477,7 @@ bool QFont::isFeatureSet(Tag tag) const
2482
2477
}
2483
2478
2484
2479
/* !
2485
- \since 6.6
2486
- \preliminary
2480
+ \since 6.7
2487
2481
2488
2482
Clears any previously set features on the QFont.
2489
2483
@@ -2496,43 +2490,6 @@ void QFont::clearFeatures()
2496
2490
d->features .clear ();
2497
2491
}
2498
2492
2499
- /* !
2500
- \since 6.6
2501
- \internal
2502
-
2503
- Returns the decoded name for \a tag as defined in the OpenType font specification. The tag
2504
- is decoded into four 8 bit characters. For valid tags, each will be in the basic Latin range of
2505
- 0x20 to 0x7E.
2506
-
2507
- \sa setFeature(), unsetFeature(), featureTags(), featureValue()
2508
- */
2509
- QByteArray QFont::tagToString (quint32 tag)
2510
- {
2511
- if (auto maybeTag = QFont::Tag::fromValue (tag))
2512
- return maybeTag->toString ();
2513
- return {};
2514
- }
2515
-
2516
- /* !
2517
- \since 6.6
2518
- \internal
2519
-
2520
- Returns the encoded tag for \a name as defined in the OpenType font specification. The name
2521
- must be a null-terminated string of four characters exactly, and in order to be a valid tag,
2522
- each character must be in the basic Latin range of 0x20 to 0x7E.
2523
-
2524
- The function returns 0 for strings of the wrong length, but does not otherwise check the input
2525
- for validity.
2526
-
2527
- \sa setFeature(), unsetFeature(), featureTags(), featureValue()
2528
- */
2529
- quint32 QFont::stringToTag (const char *name)
2530
- {
2531
- if (auto maybeTag = QFont::Tag::fromString (name))
2532
- return maybeTag->value ();
2533
- return 0 ;
2534
- }
2535
-
2536
2493
extern QStringList qt_fallbacksForFamily (const QString &family, QFont::Style style,
2537
2494
QFont::StyleHint styleHint, QChar::Script script);
2538
2495
0 commit comments