GetTextWidth Function

Microchip Graphics Library

Microchip Graphics Library
GetTextWidth Function
C
SHORT GetTextWidth(
    XCHAR * textString, 
    void * pFont
);
Overview

This function returns the width of the specified string for the specified font. The string must be terminated by a line feed or zero.

Input Parameters
Input Parameters 
Description 
XCHAR * textString 
Pointer to the string. 
void * pFont 
Pointer to the font image. 
Returns

Returns the string width in the specified font.

Side Effects

none

Example

See OutTextXY() example.

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved