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

QgsFontMarkerSymbolLayer(QgsFontMarkerSymbolLayer)

Methods

bounds
character Returns the character used when rendering points.
clone
copyDataDefinedProperties
copyPaintEffect
create Creates a new QgsFontMarkerSymbolLayer from a property map (see properties())
createFromSld Creates a new QgsFontMarkerSymbolLayer from an SLD XML element.
fontFamily Returns the font family name for the associated font which will be used to render the point.
layerType
markerOffset
markerOffset2
markerOffsetWithWidthAndHeight
penJoinStyle Returns the stroke join style.
properties
renderPoint
restoreOldDataDefinedProperties
setCharacter Sets the character used when rendering points.
setFontFamily Sets the font family for the font which will be used to render the point.
setPenJoinStyle Sets the stroke join style.
setStrokeColor
setStrokeWidth Set’s the marker’s stroke width.
setStrokeWidthMapUnitScale Sets the stroke width map unit scale.
setStrokeWidthUnit Sets the stroke width unit.
startRender
stopRender
strokeColor
strokeWidth Returns the marker’s stroke width.
strokeWidthMapUnitScale Returns the stroke width map unit scale.
strokeWidthUnit Returns the stroke width unit.
writeSldMarker

Signals

Attributes

bounds(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext) → QRectF
character(self) → str

Returns the character used when rendering points.

See also

setCharacter()

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

setFontFamily()

layerType(self) → str
markerOffset()
markerOffset2()
markerOffsetWithWidthAndHeight()
penJoinStyle(self) → Qt.PenJoinStyle

Returns the stroke join style.

New in version 2.16.

properties(self) → Dict[str, str]
renderPoint(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext)
restoreOldDataDefinedProperties()
setCharacter(self, ch: str)

Sets the character used when rendering points.

See also

character()

setFontFamily(self, family: str)

Sets the font family for the font which will be used to render the point.

See also

fontFamily()

setPenJoinStyle(self, style: Qt.PenJoinStyle)

Sets the stroke join style.

See also

penJoinStyle()

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

strokeWidth()

New in version 2.16.

setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)

Sets the stroke width map unit scale.

See also

setStrokeWidth()

New in version 2.16.

setStrokeWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the stroke width unit.

See also

setStrokeWidth()

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

setStrokeWidth()

New in version 2.16.

strokeWidthMapUnitScale(self) → QgsMapUnitScale

Returns the stroke width map unit scale.

See also

strokeWidth()

New in version 2.16.

strokeWidthUnit(self) → QgsUnitTypes.RenderUnit

Returns the stroke width unit.

See also

strokeWidth()

New in version 2.16.

writeSldMarker(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])