Class: QgsTextRendererUtils¶
- class qgis.core.QgsTextRendererUtils¶
Bases:
sip.wrapper
Utility functions for text rendering.
New in version 3.10:
Methods
Decodes a string representation of a background rotation type to a type.
Decodes a string representation of a background size type to a type.
Decodes a string representation of a shadow placement type to a type.
Decodes a string representation of a background shape type to a type.
Attempts to decode a string representation of a text orientation.
Encodes a text
orientation
.- decodeBackgroundRotationType(string: str) QgsTextBackgroundSettings.RotationType ¶
Decodes a string representation of a background rotation type to a type.
- Parameters:
string (str) –
- Return type:
- decodeBackgroundSizeType(string: str) QgsTextBackgroundSettings.SizeType ¶
Decodes a string representation of a background size type to a type.
- Parameters:
string (str) –
- Return type:
- decodeShadowPlacementType(string: str) QgsTextShadowSettings.ShadowPlacement ¶
Decodes a string representation of a shadow placement type to a type.
- Parameters:
string (str) –
- Return type:
- decodeShapeType(string: str) QgsTextBackgroundSettings.ShapeType ¶
Decodes a string representation of a background shape type to a type.
- Parameters:
string (str) –
- Return type:
- decodeTextOrientation(name: str) Tuple[QgsTextFormat.TextOrientation, bool] ¶
Attempts to decode a string representation of a text orientation.
- Parameters:
name (str) – encoded text orientation name
ok – if specified, will be set to
True
if the name was successfully decoded
- Return type:
Tuple[QgsTextFormat.TextOrientation, bool]
- Returns:
decoded text orientation
See also
- encodeTextOrientation(orientation: QgsTextFormat.TextOrientation) str ¶
Encodes a text
orientation
.- Return type:
str
- Returns:
encoded string
See also
- Parameters:
orientation (QgsTextFormat.TextOrientation) –