i_t1_start()

Initialize the font driver. This does not actually initialize T1Lib, it just allocates the mutex we use to gate access to it.

i_init_t1(t1log)

Initializes the t1lib font rendering engine.

i_close_t1()

Shuts the t1lib font rendering engine down.

This it seems that this function is never used.
i_t1_new(pfb, afm)

Loads the fonts with the given filenames, returns its font id

pfb -  path to pfb file for font
afm -  path to afm file for font
i_t1_destroy(font)

Frees resources for a t1 font with given font id.

font - font to free
i_t1_set_aa(st)

Sets the antialiasing level of the t1 library.

st - 0 =  NONE, 1 = LOW, 2 =  HIGH.

Must be called with the mutex locked.

i_t1_cp(im, xb, yb, channel, fontnum, points, str, len, align,aa)

Interface to text rendering into a single channel in an image

im        pointer to image structure
xb        x coordinate of start of string
yb        y coordinate of start of string ( see align )
channel - destination channel
fontnum - t1 library font id
points  - number of points in fontheight
str     - string to render
len     - string length
align   - (0 - top of font glyph | 1 - baseline )
aa      - anti-aliasing level
i_t1_bbox(handle, fontnum, points, str, len, cords)

function to get a strings bounding box given the font id and sizes

handle  - pointer to font handle   
fontnum - t1 library font id
points  - number of points in fontheight
str     - string to measure
len     - string length
cords   - the bounding box (modified in place)
i_t1_text(im, xb, yb, cl, fontnum, points, str, len, align, utf8, flags, aa)

Interface to text rendering in a single color onto an image

im      - pointer to image structure
xb      - x coordinate of start of string
yb      - y coordinate of start of string ( see align )
cl      - color to draw the text in
fontnum - t1 library font id
points  - number of points in fontheight
str     - char pointer to string to render
len     - string length
align   - (0 - top of font glyph | 1 - baseline )
utf8    - str is utf8
flags   - formatting flags
aa      - anti-aliasing level
t1_get_flags(flags)

Processes the characters in flags to create a mod_flags value used by some T1Lib functions.

t1_from_utf8(char const *in, size_t len, int *outlen)

Produces an unencoded version of in by dropping any Unicode character over 255.

Returns a newly allocated buffer which should be freed with myfree(). Sets *outlen to the number of bytes used in the output string.

i_t1_has_chars(font_num, text, len, utf8, out)

Check if the given characters are defined by the font. Note that len is the number of bytes, not the number of characters (when utf8 is non-zero).

out[char index] will be true if the character exists.

Accepts UTF-8, but since T1 can only have 256 characters, any chars with values over 255 will simply be returned as false.

Returns the number of characters that were checked.

i_t1_face_name(font, name_buf, name_buf_size)

Copies the face name of the given font_num to name_buf. Returns the number of characters required to store the name (which can be larger than name_buf_size, including the space required to store the terminating NUL).

If name_buf is too small (as specified by name_buf_size) then the name will be truncated. name_buf will always be NUL termintaed.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 23:

'=item' outside of any '=over'

=over without closing =back