Each text is also a mixture of characters which can imagined as sub images. All of the subimages are the "font". To a font belongs also some vertical and horizintal distances between individuals char.
A fine explanation of the vertical measurements:
Glossary of Font Terms.
For working with fonts and texts the is some API. For Windows you can start here:
Fonts and Text.