summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontvariableaxis.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QFontVariableAxis: add debug stream supportVolker Hilsheimer2025-01-131-0/+22
| | | | | | | | | | | Was missing from this new value type, and is quite useful for this type. Addresses API review comment. Pick-to: 6.9 Change-Id: I07ea7ded7f963b2032c377f024bb88e9d54a4d5c Reviewed-by: Ivan Solovev <[email protected]> Reviewed-by: Marc Mutz <[email protected]>
* Font: Fix potential use-after-freeMÃ¥rten Nordheim2024-08-281-10/+10
| | | | | | | | | | | | The detach() call might deallocate the d-ptr we already cached in the Q_D call, so move the Q_D call to after detach()ing. Even if it was not deallocated, as long as it was previously shared, we would assign to the wrong private. Change-Id: I9643ad72a7c7934cba9807220a9cf6c53c66ab13 Reviewed-by: Eskil Abrahamsen Blomfeldt <[email protected]> Reviewed-by: Edward Welbourne <[email protected]>
* Add API to get variable axis information from fontEskil Abrahamsen Blomfeldt2024-08-281-0/+226
This adds QFontInfo::variableAxes() which can be used to inspect a variable font and see which axes it defines. It is implemented on DirectWrite, CoreText and FreeType. On FreeType, there is a bug where getting the information about variable axes on a font will cause the FT_Face to be unusable. Unfortunately this happens for Cantarell-VF which is the default font on some platforms. To work around this, we create a temporary duplicate of the FT_Face for multiple masters fonts on older FreeType versions when we fetch the information about the axes so that we can throw away the broken FT_Face after. [ChangeLog][QtGui][Fonts] Added API to get variable axis information for a font. Change-Id: Ia16e0a5f6df5744dc47e7f16c074391afde1f126 Reviewed-by: Volker Hilsheimer <[email protected]>