Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptterminalfontinfo.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptterminalfontinfo.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptterminalfontinfo.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptterminalfontinfo.html on line 8
Convert the font name to a fixed-width font name
int PtTerminalFontInfo( const char *font,
PhDim_t *size,
PhPoint_t *offs );
This function makes sure that the given font exists and is a
fixed-width font. It returns an allocated copy of the name. If the
appropriate font doesn't exist, PtTerminalFontInfo() returns
NULL.
This function stores information about the font's geometry at
locations pointed to by size and offs:
- If size isn't NULL, the width and height of the
character cell are stored in the
PhDim_t
structure (see the Photon Library Reference) it points to.
- If offs isn't NULL, the function stores, in
the
PhPoint_t
structure that it points to, the position that should be given to a drawing
function in order to draw the character cell starting at position (0, 0).
0 if the font name exists and is a fixed-width font, and -1 if not.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtTerminal
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/pt/ptterminalfontinfo.html on line 102
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/pt/ptterminalfontinfo.html on line 102