Xiqual 0.9.1

In file include/fonts.h:

#define xi_textwidth

(font, text)

Calculate how many pixels wide a string printed with a fixed-width xifont will be.

Documentation

Calculate how many pixels wide a string printed with a fixed-width xifont will be. This is merely a wrapper for a multiplication of the length of the text and the fornt width. Use SDL_ttf for nice variable width fonts.
Parameters:
font - A font in Xiqual's own, peculiar format.
text - A string you want to find space for.
Returns:
An integer indicating how many pixels wide the text will be on screen.
Author:
Ronny Bangsund
See Also:
xifont, xi_loadfont(), xi_freefont(), xi_puttext()

Alphabetic index



This page was generated with the help of DOC++.