# NNS_G2dFontGetBaselinePos

## Syntax

      #include <nnsys/g2d/g2d_Font.h>

      int NNS_G2dFontGetBaselinePos(
      	const NNSG2dFont* pFont
      );

## Arguments

pFont | [IN] Pointer to font

## Return Values

Returns the number of pixels from the cell top to the baseline.

## Description

Returns the number of pixels from the cell top to the baseline.

The baseline has no thickness and is between pixels. The baseline position in a cell is the same for all glyphs in a font.

When vertically written fonts are used, the baseline will be oriented vertically on the left side of the glyph. The return value is the number of pixels from the right edge of the character to the baseline.
When vertically held fonts are used, the return value will be the number of pixels from the top edge of the character to the baseline.

## See Also

``

## Revision History

2007/03/14 Added support for vertically written/vertically held fonts.
2005/05/25 Initial version.

CONFIDENTIAL