ufmGetTypefaceInfo(3w) ufmGetTypefaceInfo(3w)
ufmGetTypefaceInfo - get typeface information
#include <ufm.h>
int ufmGetTypefaceInfo(unsigned int typefaceHandle,
ufmTypeface **typeface)
ufmGetTypefaceInfo gets the information for a specified typeface or font
family, such as Helvetica.
typefaceHandle specifies the handle for an open typeface. Use the
function ufmOpenTypeface to open a typeface, and get a handle for that
typeface.
ufmGetTypefaceInfo uses the argument typeface to return a pointer to a
data structure of the type ufmTypeface that it has allocated. If
ufmGetTypefaceInfo does not find a specified typeface, it returns NULL.
When your program is finished with the data structure typeface, it can
call the function ufmFreeTypefaceInfo to free the memory allocated for
that data structure by ufmGetTypefaceInfo.
ufmFreeTypefaceInfo(3w), ufmOpenTypeface(3w).
If ufmGetTypefaceInfo is not able to allocate the memory it needs, it
will return the value UFM_OUT_OF_MEMORY. If it does not find the
specified typeface, it will return the value UFM_INVALID_VALUE.
UFM_OUT_OF_MEMORY and UFM_INVALID_VALUE are defined in the header file
<ufm.h>.
PPPPaaaaggggeeee 1111 [ Back ]
|