Class: QgsFontTextureAtlasGenerator

Generates texture atlases for a font by efficiently packing the characters required for a set of strings.

Added in version 4.0.

Static Methods

create

Creates the texture atlas for a set of strings, using the specified text format.

class qgis._3d.QgsFontTextureAtlasGenerator[source]

Bases: object

static create(format: QgsTextFormat, strings: Iterable[str | None]) QgsFontTextureAtlas[source]

Creates the texture atlas for a set of strings, using the specified text format.

Parameters:
Return type:

QgsFontTextureAtlas