C / graphics.h / textwidth
arc, bar, bar3d, circle, cleardevice, clearviewport, closegraph, detectgraph, drawpoly, ellipse, fillellipse, fillpoly, floodfill, getarccoords, getaspectratio, getbkcolor, getcolor, getdefaultpalette, getdrivername, getfillpattern, getfillsettings, getgraphmode, getimage, getlinesettings, getmaxcolor, getmaxmode, getmaxx, getmaxy, getmodename, getmoderange, getpalette, getpalettesize, getpixel, gettextsettings, getviewsettings, getx, gety, graphdefaults, grapherrormsg, _graphfreemem, _graphgetmem, graphresult, imagesize, initgraph, installuserdriver, installuserfont, line, linerel, lineto, moverel, moveto, outtext, outtextxy, pieslice, putimage, putpixel, rectangle, registerbgidriver, registerbgifont, restorecrtmode, sector, setactivepage, setallpalette, setaspectratio, setbkcolor, setfillpattern, setfillstyle, setgraphbufsize, setgraphmode, setlinestyle, setpalette, setrgbpalette, settextjustify, settextstyle, setusercharsize, setviewport, setvisualpage, setwritemode, textheight, » textwidth,
Funcion: textwidth()
Sintaxis:
int far textwidth(char far *texto);

Descripcion: Esta función es usada para determinar la anchura, en píxels, de la cadena de texto especificada por el argumento *texto. La anchura del texto se determina usando la fuente actual y el tamaño del carácter.
Ejemplo:
#include <graphics.h>
#include <conio.h>
#include <stdio.h>
 
int main() {
   int gdriver = EGA;
   int gmodo = EGAHI;
   int anchura, altura;
   char mensaje[5] = "Hola";
 
/* Si has registrado los dispositivos para que formen parte de graphics.lib
** entonces usa estas sentencias:
 
   registerbgidriver( EGAVGA_driver );
   initgraph( &gdriver, &gmodo, "" );
*/
 
/* Si no, entonces has de "decir" d&oacute;nde se encuentra el dispositivo gr&aacute;fico */
 
   initgraph( &gdriver, &gmodo, "C:\\BC5\\BGI" );
 
   anchura = textwidth( mensaje );
   altura = textheight( mensaje );
 
   closegraph();
 
   printf( "El mensaje: \"%s\" tiene de anchura: %d y altura: %d\n", mensaje, anchura, altura );
   printf( "Pulsa una tecla para continuar...\n" );
   getch();
 
   return 0;
}

Librerias C

Librerias ANSI C
   string.hcstring
   math.hcmath
   stdio.hcstdio
   time.hctime
   stdlib.hcstdlib
   ctype.hcctype
   locale.hclocale
   signal.hcsignal
   setjmp.hcsetjmp

Librerias Borland
   conio.h
   graphics.h