Subgroup: Font

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)

bounds(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext) → QRectF
character(self) → str
clone(self) → QgsFontMarkerSymbolLayer
copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
createFromSld(element: QDomElement) → QgsSymbolLayer
fontFamily(self) → str
layerType(self) → str
markerOffset()
markerOffset2()
markerOffsetWithWidthAndHeight()
penJoinStyle(self) → Qt.PenJoinStyle

Get 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)
setFontFamily(self, family: str)
setPenJoinStyle(self, style: Qt.PenJoinStyle)

Set stroke join style.

New in version 2.16.

setStrokeColor(self, color: Union[QColor, Qt.GlobalColor])
setStrokeWidth(self, width: float)

Set stroke width.

New in version 2.16.

setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)

Set stroke width map unit scale.

New in version 2.16.

setStrokeWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Set stroke width unit.

New in version 2.16.

startRender(self, context: QgsSymbolRenderContext)
stopRender(self, context: QgsSymbolRenderContext)
strokeColor(self) → QColor
strokeWidth(self) → float

Get stroke width.

New in version 2.16.

strokeWidthMapUnitScale(self) → QgsMapUnitScale

Get stroke width map unit scale.

New in version 2.16.

strokeWidthUnit(self) → QgsUnitTypes.RenderUnit

Get stroke width unit.

New in version 2.16.

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