mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
Unlike setting a font's style via setNamedStyle(), these settings will ensure that a font is always rendered in bold or italic regardless of whether the font family actually has a bold or italic variant. A "faux bold" or slanted text effect will be emulated by Qt, which may result in poor quality font rendering. (For this reason it is greatly preferred to call setNamedStyle() instead.) This API is being added so that QgsTextFormat/QgsTextRenderer can replicate the same font behaviour as the base QFont/QPainter classes do, where faux bold/italic effects are possible. (It's not exposed anywhere for user control!)