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)
Methods
angle
Returns the rotation angle for the marker, in degrees clockwise from north. bounds
character
clone
color
The fill color. copyDataDefinedProperties
copyPaintEffect
create
createFromSld
dataDefinedProperties
Returns a reference to the symbol layer’s property collection, used for data defined overrides. drawPreviewIcon
dxfAngle
get angle dxfBrushColor
get brush/fill color dxfBrushStyle
get brush/fill style dxfColor
get color dxfCustomDashPattern
get dash pattern dxfOffset
get offset dxfPenStyle
get pen style dxfWidth
get line width enabled
Returns true if symbol layer is enabled and will be drawn. estimateMaxBleed
Returns the estimated maximum distance which the layer style will bleed outside the drawn shape when drawn in the specified /a context. fillColor
Get fill color. fontFamily
horizontalAnchorPoint
Returns the horizontal anchor point for positioning the symbol. isCompatibleWithSymbol
Returns if the layer can be used below the specified symbol isLocked
layerType
mapUnitScale
markerOffset
markerOffset2
markerOffsetWithWidthAndHeight
offset
Returns the marker’s offset, which is the horizontal and vertical displacement which the rendered marker will have from the original feature’s geometry. offsetMapUnitScale
Returns the map unit scale for the symbol’s offset. offsetUnit
Returns the units for the symbol’s offset. ogrFeatureStyle
outputUnit
paintEffect
Returns the current paint effect for the layer. penJoinStyle
Get stroke join style. prepareExpressions
Prepares all data defined property expressions for evaluation. properties
propertyDefinitions
Returns the symbol layer property definitions. renderPoint
renderingPass
restoreOldDataDefinedProperties
scaleMethod
Returns the method to use for scaling the marker’s size. setAngle
Sets the rotation angle for the marker. setCharacter
setColor
The fill color. setDataDefinedProperties
Sets the symbol layer’s property collection, used for data defined overrides. setDataDefinedProperty
Sets a data defined property for the layer. setEnabled
Sets whether symbol layer is enabled and should be drawn. setFillColor
Set fill color. setFontFamily
setHorizontalAnchorPoint
Sets the horizontal anchor point for positioning the symbol. setLineAngle
Sets the line angle modification for the symbol’s angle. setLocked
setMapUnitScale
setOffset
Sets the marker’s offset, which is the horizontal and vertical displacement which the rendered marker should have from the original feature’s geometry. setOffsetMapUnitScale
Sets the map unit scale for the symbol’s offset. setOffsetUnit
Sets the units for the symbol’s offset. setOutputUnit
setPaintEffect
Sets the current paint effect for the layer. setPenJoinStyle
Set stroke join style. setRenderingPass
setScaleMethod
Sets the method to use for scaling the marker’s size. setSize
Sets the symbol size. setSizeMapUnitScale
Sets the map unit scale for the symbol’s size. setSizeUnit
Sets the units for the symbol’s size. setStrokeColor
setStrokeWidth
Set stroke width. setStrokeWidthMapUnitScale
Set stroke width map unit scale. setStrokeWidthUnit
Set stroke width unit. setSubSymbol
set layer’s subsymbol. takes ownership of the passed symbol setVerticalAnchorPoint
Sets the vertical anchor point for positioning the symbol. size
Returns the symbol size. sizeMapUnitScale
Returns the map unit scale for the symbol’s size. sizeUnit
Returns the units for the symbol’s size. startRender
stopRender
strokeColor
strokeWidth
Get stroke width. strokeWidthMapUnitScale
Get stroke width map unit scale. strokeWidthUnit
Get stroke width unit. subSymbol
Returns the symbol’s sub symbol, if present. toSld
type
usedAttributes
Returns the set of attributes referenced by the layer. verticalAnchorPoint
Returns the vertical anchor point for positioning the symbol. writeDxf
write as DXF writeSldMarker
Attributes
Bottom
HCenter
Left
PropertyAngle
PropertyArrowHeadLength
PropertyArrowHeadThickness
PropertyArrowHeadType
PropertyArrowStartWidth
PropertyArrowType
PropertyArrowWidth
PropertyBlurRadius
PropertyCapStyle
PropertyCharacter
PropertyCoordinateMode
PropertyCustomDash
PropertyDisplacementX
PropertyDisplacementY
PropertyDistanceX
PropertyDistanceY
PropertyFile
PropertyFillColor
PropertyFillStyle
PropertyGradientReference1IsCentroid
PropertyGradientReference1X
PropertyGradientReference1Y
PropertyGradientReference2IsCentroid
PropertyGradientReference2X
PropertyGradientReference2Y
PropertyGradientSpread
PropertyGradientType
PropertyHeight
PropertyHorizontalAnchor
PropertyInterval
PropertyJoinStyle
PropertyLayerEnabled
PropertyLineAngle
PropertyLineDistance
PropertyName
PropertyOffset
PropertyOffsetAlongLine
PropertyOpacity
PropertyPlacement
PropertyPreserveAspectRatio
PropertySecondaryColor
PropertyShapeburstIgnoreRings
PropertyShapeburstMaxDistance
PropertyShapeburstUseWholeShape
PropertySize
PropertyStrokeColor
PropertyStrokeStyle
PropertyStrokeWidth
PropertyVerticalAnchor
PropertyWidth
Right
Top
VCenter
-
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])¶
-