Class: QgsFontMarkerSymbolLayer¶
Class Hierarchy¶
Base classes¶
Abstract base class for marker symbol layers.  | 
|
Constructor for QgsSymbolLayer.  | 
Methods
Returns the character(s) used when rendering points.  | 
|
Returns the font family name for the associated font which will be used to render the point.  | 
|
Returns the font style 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 font style 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.  | 
Static Methods
Creates a new   | 
|
Creates a new   | 
|
Resolves fonts from a properties map, raising warnings in the specified context if the required fonts are not available on the system.  | 
- class qgis.core.QgsFontMarkerSymbolLayer(fontFamily: str | None = '', chr: str | None = '', pointSize: float = DEFAULT_FONTMARKER_SIZE, color: QColor | Qt.GlobalColor = DEFAULT_FONTMARKER_COLOR, angle: float = DEFAULT_FONTMARKER_ANGLE)[source]¶
 Bases:
QgsMarkerSymbolLayer- character(self) str[source]¶
 Returns the character(s) used when rendering points.
See also
- Return type:
 str
- static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None[source]¶
 Creates a new
QgsFontMarkerSymbolLayerfrom a property map (seeproperties())- Parameters:
 properties (Dict[str, Any] = {})
- Return type:
 Optional[QgsSymbolLayer]
- static createFromSld(element: QDomElement) QgsSymbolLayer | None[source]¶
 Creates a new
QgsFontMarkerSymbolLayerfrom an SLD XMLelement.- Parameters:
 element (QDomElement)
- Return type:
 Optional[QgsSymbolLayer]
- fontFamily(self) str[source]¶
 Returns the font family name for the associated font which will be used to render the point.
See also
- Return type:
 str
- fontStyle(self) str[source]¶
 Returns the font style for the associated font which will be used to render the point.
See also
Added in version 3.14.
- Return type:
 str
- penJoinStyle(self) Qt.PenJoinStyle[source]¶
 Returns the stroke join style.
See also
- Return type:
 Qt.PenJoinStyle
- static resolveFonts(properties: Dict[str, Any], context: QgsReadWriteContext)[source]¶
 Resolves fonts from a
propertiesmap, raising warnings in the specifiedcontextif the required fonts are not available on the system.Added in version 3.20.
- Parameters:
 properties (Dict[str, Any])
context (QgsReadWriteContext)
- setCharacter(self, chr: str | None)[source]¶
 Sets the character(s) used when rendering points.
See also
- Parameters:
 chr (Optional[str])
- setFontFamily(self, family: str | None)[source]¶
 Sets the font
familyfor the font which will be used to render the point.See also
- Parameters:
 family (Optional[str])
- setFontStyle(self, style: str | None)[source]¶
 Sets the font
stylefor the font which will be used to render the point.See also
Added in version 3.14.
- Parameters:
 style (Optional[str])
- setPenJoinStyle(self, style: Qt.PenJoinStyle)[source]¶
 Sets the stroke join
style.See also
- Parameters:
 style (Qt.PenJoinStyle)
- setStrokeWidth(self, width: float)[source]¶
 Set’s the marker’s stroke
width. Units are set bysetStrokeWidthUnit().See also
See also
See also
- Parameters:
 width (float)
- setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
 Sets the stroke width map unit
scale.See also
See also
See also
- Parameters:
 scale (QgsMapUnitScale)
- setStrokeWidthUnit(self, unit: Qgis.RenderUnit)[source]¶
 Sets the stroke width
unit.See also
See also
See also
- Parameters:
 unit (Qgis.RenderUnit)
- strokeWidth(self) float[source]¶
 Returns the marker’s stroke width. Units are retrieved by
strokeWidthUnit()See also
See also
See also
- Return type:
 float
- strokeWidthMapUnitScale(self) QgsMapUnitScale¶
 Returns the stroke width map unit scale.
See also
See also
See also
- Return type:
 
- strokeWidthUnit(self) Qgis.RenderUnit[source]¶
 Returns the stroke width unit.
See also
See also
See also
- Return type: