Class: QgsFontMarkerSymbolLayer¶
-
class
qgis.core.
QgsFontMarkerSymbolLayer
(fontFamily: str = '', chr: str = '', pointSize: float = DEFAULT_FONTMARKER_SIZE, color: Union[QColor, Qt.GlobalColor] = DEFAULT_FONTMARKER_COLOR, angle: float = DEFAULT_FONTMARKER_ANGLE)¶ Bases:
qgis._core.QgsMarkerSymbolLayer
Constructs a font marker symbol layer.
Enums
Methods
Returns the character(s) used when rendering points.
Creates a new QgsFontMarkerSymbolLayer from a property map (see properties())
Creates a new QgsFontMarkerSymbolLayer from an SLD XML
element
.Returns the font family name for the associated font which will be used to render the point.
Returns the stroke join style.
Sets the character(s) used when rendering points.
Sets the font
family
for the font which will be used to render the point.Sets the stroke join
style
.Set’s the marker’s stroke
width
.Sets the stroke width map unit
scale
.Sets the stroke width
unit
.Returns the marker’s stroke width.
Returns the stroke width map unit scale.
Returns the stroke width unit.
Signals
Attributes
-
bounds
(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext) → QRectF¶
-
character
(self) → str¶ Returns the character(s) used when rendering points.
See also
-
clone
(self) → QgsFontMarkerSymbolLayer¶
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶ Creates a new QgsFontMarkerSymbolLayer from a property map (see properties())
-
createFromSld
(element: QDomElement) → QgsSymbolLayer¶ Creates a new QgsFontMarkerSymbolLayer from an SLD XML
element
.
-
fontFamily
(self) → str¶ Returns the font family name for the associated font which will be used to render the point.
See also
-
layerType
(self) → str¶
-
markerOffset
()¶
-
markerOffset2
()¶
-
markerOffsetWithWidthAndHeight
()¶
-
penJoinStyle
(self) → Qt.PenJoinStyle¶ Returns the stroke join style.
See also
New in version 2.16.
-
properties
(self) → Dict[str, str]¶
-
renderPoint
(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext)¶
-
restoreOldDataDefinedProperties
()¶
-
setCharacter
(self, chr: str)¶ Sets the character(s) used when rendering points.
See also
-
setFontFamily
(self, family: str)¶ Sets the font
family
for the font which will be used to render the point.See also
-
setPenJoinStyle
(self, style: Qt.PenJoinStyle)¶ Sets the stroke join
style
.See also
New in version 2.16.
-
setStrokeColor
(self, color: Union[QColor, Qt.GlobalColor])¶
-
setStrokeWidth
(self, width: float)¶ Set’s the marker’s stroke
width
. Units are set by setStrokeWidthUnit().See also
See also
See also
New in version 2.16.
-
setStrokeWidthMapUnitScale
(self, scale: QgsMapUnitScale)¶ Sets the stroke width map unit
scale
.See also
See also
See also
New in version 2.16.
-
setStrokeWidthUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the stroke width
unit
.See also
See also
See also
New in version 2.16.
-
startRender
(self, context: QgsSymbolRenderContext)¶
-
stopRender
(self, context: QgsSymbolRenderContext)¶
-
strokeColor
(self) → QColor¶
-
strokeWidth
(self) → float¶ Returns the marker’s stroke width. Units are retrieved by strokeWidthUnit()
See also
See also
See also
New in version 2.16.
-
strokeWidthMapUnitScale
(self) → QgsMapUnitScale¶ Returns the stroke width map unit scale.
See also
See also
See also
New in version 2.16.
-
strokeWidthUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the stroke width unit.
See also
See also
See also
New in version 2.16.
-
writeSldMarker
(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])¶
-