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

get_bottom() float

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

static get_class_type() TypeHandle
get_left() float

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

get_page() DynamicTextPage

Returns the DynamicTextPage that this glyph is on.

get_right() float

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

get_top() float

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

get_uv_bottom() float

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

get_uv_left() float

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

get_uv_right() float

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

get_uv_top() 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.