# PNMTextGlyph

from pandac.PandaModules import PNMTextGlyph

Class : PNMTextGlyph
Description : A single glyph in a PNMTextMaker.

## Inheritance:

PNMTextGlyph:

## Methods of PNMTextGlyph:

PNMTextGlyph (Constructor)
getAdvance
getBottom
getHeight
getInteriorFlag
getLeft
getRight
getTop
getValue
getWidth
place

PNMTextGlyph PNMTextGlyph::PNMTextGlyph(double advance); Description:

getAdvance int PNMTextGlyph::get_advance(void) const; Description: Returns the number of pixels by which the pen should be advanced after rendering this glyph.

getBottom int PNMTextGlyph::get_bottom(void) const; Description: Returns the y coordinate of the bottommost pixel in the glyph.

getHeight int PNMTextGlyph::get_height(void) const; Description: Returns the height of the glyph in pixels.

getInteriorFlag bool PNMTextGlyph::get_interior_flag(int x, int y) const; Description: Returns true if the indicated pixel represents a pixel in the interior of a hollow font, false otherwise.

getLeft int PNMTextGlyph::get_left(void) const; Description: Returns the x coordinate of the leftmost pixel in the glyph.

getRight int PNMTextGlyph::get_right(void) const; Description: Returns the x coordinate of the rightmost pixel in the glyph.

getTop int PNMTextGlyph::get_top(void) const; Description: Returns the y coordinate of the topmost pixel in the glyph.

getValue double PNMTextGlyph::get_value(int x, int y) const; Description: Returns the value of the indicated pixel of the glyph. The result is in the range [0, 1], where 0 indicates the pixel is not part of the glyph, and 1 indicates it is. Intermediate values are used to represent antialiasing.

getWidth int PNMTextGlyph::get_width(void) const; Description: Returns the width of the glyph in pixels.

place void PNMTextGlyph::place(PNMImage &dest_image, int xp, int yp, LVecBase4f const &fg); Description: Copies the glyph to the indicated destination image at the indicated origin. It colors the glyph pixels the indicated foreground color, blends antialiased pixels with the appropriate amount of the foreground color and the existing background color, and leaves other pixels alone. Description: This flavor of place() also fills in the interior color. This requires that determine_interior was called earlier.