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:
QgsMarkerSymbolLayer
QgsFontMarkerSymbolLayer(
QgsFontMarkerSymbolLayer
)- Parameters
fontFamily (str = '') –
chr (str = '') –
pointSize (float = DEFAULT_FONTMARKER_SIZE) –
color (Union[QColor) –
angle –
-
bounds
(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext) → QRectF¶ - Parameters
point (Union[QPointF) –
context (QgsSymbolRenderContext) –
- Return type
QRectF
-
character
(self) → str¶ Returns the character used when rendering points.
See also
- Return type
str
-
clone
(self) → QgsFontMarkerSymbolLayer¶ - Return type
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶ Creates a new
QgsFontMarkerSymbolLayer
from a property map (see properties())- Parameters
properties (Dict[str) –
- Return type
-
createFromSld
(element: QDomElement) → QgsSymbolLayer¶ Creates a new
QgsFontMarkerSymbolLayer
from an SLD XMLelement
.- Parameters
element (QDomElement) –
- Return type
-
fontFamily
(self) → str¶ Returns the font family name for the associated font which will be used to render the point.
See also
- Return type
str
-
layerType
(self) → str¶ - Return type
str
-
markerOffset
()¶
-
markerOffset2
()¶
-
markerOffsetWithWidthAndHeight
()¶
-
penJoinStyle
(self) → Qt.PenJoinStyle¶ Returns the stroke join style.
See also
New in version 2.16.
- Return type
Qt.PenJoinStyle
-
properties
(self) → Dict[str, str]¶ - Return type
Dict[str, str]
-
renderPoint
(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext)¶ - Parameters
point (Union[QPointF) –
context (QgsSymbolRenderContext) –
-
restoreOldDataDefinedProperties
()¶
-
setCharacter
(self, ch: str)¶ Sets the character used when rendering points.
See also
- Parameters
ch (str) –
-
setFontFamily
(self, family: str)¶ Sets the font
family
for the font which will be used to render the point.See also
- Parameters
family (str) –
-
setPenJoinStyle
(self, style: Qt.PenJoinStyle)¶ Sets the stroke join
style
.See also
New in version 2.16.
- Parameters
style (Qt.PenJoinStyle) –
-
setStrokeColor
(self, color: Union[QColor, Qt.GlobalColor])¶ - Parameters
color (Union[QColor) –
-
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.
- Parameters
width (float) –
-
setStrokeWidthMapUnitScale
(self, scale: QgsMapUnitScale)¶ Sets the stroke width map unit
scale
.See also
See also
See also
New in version 2.16.
- Parameters
scale (QgsMapUnitScale) –
-
setStrokeWidthUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the stroke width
unit
.See also
See also
See also
New in version 2.16.
- Parameters
unit (QgsUnitTypes.RenderUnit) –
-
startRender
(self, context: QgsSymbolRenderContext)¶ - Parameters
context (QgsSymbolRenderContext) –
-
stopRender
(self, context: QgsSymbolRenderContext)¶ - Parameters
context (QgsSymbolRenderContext) –
-
strokeColor
(self) → QColor¶ - Return type
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.
- Return type
float
-
strokeWidthMapUnitScale
(self) → QgsMapUnitScale¶ Returns the stroke width map unit scale.
See also
See also
See also
New in version 2.16.
- Return type
-
strokeWidthUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the stroke width unit.
See also
See also
See also
New in version 2.16.
- Return type
-
writeSldMarker
(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])¶ - Parameters
doc (QDomDocument) –
element (QDomElement) –
props (Dict[str) –