freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Information Request


From: Brian Cowie
Subject: Information Request
Date: Mon, 10 Apr 2000 11:49:08 -0400

I've looked through the documentation and can't find an answer for my
question, so I'm writing directly.

What I'd like is some function, where I can give it the following
parameters:

a string
a font
a font size
a device resolution

The return from the function would give me:

the length of the string, in the device resolution, at the specified font
size.

For example, if I gave the function a string "0123456789', for a Courier
10-pitch font and a 300 dpi device, the function should return a result of
300. That is, ten characters of a 10-pitch font should be 1 inch or 300 dots
long. It would also be helpful if the function could also return the height
of the string.

Can I use FreeType to do this?

Regards,
Brian Cowie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]