DynamicTextGlyph

from panda3d.core import DynamicTextGlyph
class DynamicTextGlyph

Bases:

Bases: TextGlyph

A specialization on TextGlyph that is generated and stored by a DynamicTextFont. This keeps some additional information, such as where the glyph appears on a texture map.

Inheritance diagram

Inheritance diagram of DynamicTextGlyph

getBottom() float

Returns the vertex coordinates that can be used when creating a custom text renderer.

static getClassType() TypeHandle
getLeft() float

Returns the vertex coordinates that can be used when creating a custom text renderer.

getPage() DynamicTextPage

Returns the DynamicTextPage that this glyph is on.

getRight() float

Returns the vertex coordinates that can be used when creating a custom text renderer.

getTop() float

Returns the vertex coordinates that can be used when creating a custom text renderer.

getUvBottom() float

Returns the UV coordinates that can be used when creating a custom text renderer.

getUvLeft() float

Returns the UV coordinates that can be used when creating a custom text renderer.

getUvRight() float

Returns the UV coordinates that can be used when creating a custom text renderer.

getUvTop() float

Returns the UV coordinates that can be used when creating a custom text renderer.

intersects(x: int, y: int, x_size: int, y_size: int) bool

Returns true if the particular position this glyph has been assigned to overlaps the rectangle whose top left corner is at x, y and whose size is given by x_size, y_size, or false otherwise.

property page DynamicTextPage

Returns the DynamicTextPage that this glyph is on.