|
| QgsTextFormat () |
| Default constructor for QgsTextFormat. More...
|
|
| QgsTextFormat (const QgsTextFormat &other) |
| Copy constructor. More...
|
|
| ~QgsTextFormat () |
|
bool | allowHtmlFormatting () const |
| Returns true if text should be treated as a HTML document and HTML tags should be used for formatting the rendered text. More...
|
|
QgsTextBackgroundSettings & | background () |
| Returns a reference to the text background settings. More...
|
|
QgsTextBackgroundSettings | background () const |
| Returns a reference to the text background settings. More...
|
|
QPainter::CompositionMode | blendMode () const |
| Returns the blending mode used for drawing the text. More...
|
|
QgsTextBufferSettings & | buffer () |
| Returns a reference to the text buffer settings. More...
|
|
QgsTextBufferSettings | buffer () const |
| Returns a reference to the text buffer settings. More...
|
|
Qgis::Capitalization | capitalization () const |
| Returns the text capitalization style. More...
|
|
QColor | color () const |
| Returns the color that text will be rendered in. More...
|
|
bool | containsAdvancedEffects () const |
| Returns true if any component of the font format requires advanced effects such as blend modes, which require output in raster formats to be fully respected. More...
|
|
QgsPropertyCollection & | dataDefinedProperties () |
| Returns a reference to the format's property collection, used for data defined overrides. More...
|
|
const QgsPropertyCollection & | dataDefinedProperties () const |
| Returns a reference to the format's property collection, used for data defined overrides. More...
|
|
QStringList | families () const |
| Returns the list of font families to use when restoring the text format, in order of precedence. More...
|
|
QFont | font () const |
| Returns the font used for rendering text. More...
|
|
bool | fontFound () const |
| Returns true if the specified font was found on the system, or false if the font was not found and a replacement was used instead. More...
|
|
bool | forcedBold () const |
| Returns true if the format is set to force a bold style. More...
|
|
bool | forcedItalic () const |
| Returns true if the format is set to force an italic style. More...
|
|
bool | isValid () const |
| Returns true if the format is valid. More...
|
|
double | lineHeight () const |
| Returns the line height for text. More...
|
|
QgsUnitTypes::RenderUnit | lineHeightUnit () const |
| Returns the units for the line height for text. More...
|
|
QgsTextMaskSettings & | mask () |
| Returns a reference to the masking settings. More...
|
|
QgsTextMaskSettings | mask () const |
| Returns a reference to the masking settings. More...
|
|
QString | namedStyle () const |
| Returns the named style for the font used for rendering text (e.g., "bold"). More...
|
|
double | opacity () const |
| Returns the text's opacity. More...
|
|
bool | operator!= (const QgsTextFormat &other) const |
|
QgsTextFormat & | operator= (const QgsTextFormat &other) |
|
bool | operator== (const QgsTextFormat &other) const |
|
Qgis::TextOrientation | orientation () const |
| Returns the orientation of the text. More...
|
|
QColor | previewBackgroundColor () const |
| Returns the background color for text previews. More...
|
|
void | readFromLayer (QgsVectorLayer *layer) |
| Reads settings from a layer's custom properties (for QGIS 2.x projects). More...
|
|
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) |
| Read settings from a DOM element. More...
|
|
QSet< QString > | referencedFields (const QgsRenderContext &context) const |
| Returns all field names referenced by the configuration (e.g. More...
|
|
QString | resolvedFontFamily () const |
| Returns the family for the resolved font, ie if the specified font was not found on the system this will return the name of the replacement font. More...
|
|
QFont | scaledFont (const QgsRenderContext &context, double scaleFactor=1.0, bool *isZeroSize=nullptr) const |
| Returns a font with the size scaled to match the format's size settings (including units and map unit scale) for a specified render context. More...
|
|
void | setAllowHtmlFormatting (bool allow) |
| Sets whether text should be treated as a HTML document and HTML tags should be used for formatting the rendered text. More...
|
|
void | setBackground (const QgsTextBackgroundSettings &backgroundSettings) |
| Sets the text's background settings.q. More...
|
|
void | setBlendMode (QPainter::CompositionMode mode) |
| Sets the blending mode used for drawing the text. More...
|
|
void | setBuffer (const QgsTextBufferSettings &bufferSettings) |
| Sets the text's buffer settings. More...
|
|
void | setCapitalization (Qgis::Capitalization capitalization) |
| Sets the text capitalization style. More...
|
|
void | setColor (const QColor &color) |
| Sets the color that text will be rendered in. More...
|
|
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
| Sets the format's property collection, used for data defined overrides. More...
|
|
void | setFamilies (const QStringList &families) |
| Sets a list of font families to use for the text format, in order of precedence. More...
|
|
void | setFont (const QFont &font) |
| Sets the font used for rendering text. More...
|
|
void | setForcedBold (bool forced) |
| Sets whether the format is set to force a bold style. More...
|
|
void | setForcedItalic (bool forced) |
| Sets whether the format is set to force an italic style. More...
|
|
void | setLineHeight (double height) |
| Sets the line height for text. More...
|
|
void | setLineHeightUnit (QgsUnitTypes::RenderUnit unit) |
| Sets the unit for the line height for text. More...
|
|
void | setMask (const QgsTextMaskSettings &maskSettings) |
| Sets the text's masking settings. More...
|
|
void | setNamedStyle (const QString &style) |
| Sets the named style for the font used for rendering text. More...
|
|
void | setOpacity (double opacity) |
| Sets the text's opacity. More...
|
|
void | setOrientation (Qgis::TextOrientation orientation) |
| Sets the orientation for the text. More...
|
|
void | setPreviewBackgroundColor (const QColor &color) |
| Sets the background color that text will be rendered on for previews. More...
|
|
void | setShadow (const QgsTextShadowSettings &shadowSettings) |
| Sets the text's drop shadow settings. More...
|
|
void | setSize (double size) |
| Sets the size for rendered text. More...
|
|
void | setSizeMapUnitScale (const QgsMapUnitScale &scale) |
| Sets the map unit scale object for the size. More...
|
|
void | setSizeUnit (QgsUnitTypes::RenderUnit unit) |
| Sets the units for the size of rendered text. More...
|
|
void | setStretchFactor (int factor) |
| Sets the text's stretch factor. More...
|
|
void | setValid () |
| Sets the format to a valid state, without changing any of the default format settings. More...
|
|
QgsTextShadowSettings & | shadow () |
| Returns a reference to the text drop shadow settings. More...
|
|
QgsTextShadowSettings | shadow () const |
| Returns a reference to the text drop shadow settings. More...
|
|
double | size () const |
| Returns the size for rendered text. More...
|
|
QgsMapUnitScale | sizeMapUnitScale () const |
| Returns the map unit scale object for the size. More...
|
|
QgsUnitTypes::RenderUnit | sizeUnit () const |
| Returns the units for the size of rendered text. More...
|
|
int | stretchFactor () const |
| Returns the text's stretch factor. More...
|
|
QMimeData * | toMimeData () const |
| Returns new mime data representing the text format settings. More...
|
|
QFont | toQFont () const |
| Returns a QFont matching the relevant settings from this text format. More...
|
|
void | updateDataDefinedProperties (QgsRenderContext &context) |
| Updates the format by evaluating current values of data defined properties. More...
|
|
QDomElement | writeXml (QDomDocument &doc, const QgsReadWriteContext &context) const |
| Write settings into a DOM element. More...
|
|