~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina4/src/PCwin/fonts.cpp

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /** @(#)Font creation and usage.
  2  **/
  3 
  4 /* Fonts are created for each display as they are needed.  They are
  5  * specified at the tv level as a string.  To change the font used in a
  6  * tv, call tv_named_font_set with a string (length < 128).  This font
  7  * is then used wherever the tv is installed (or a default if the font
  8  * name can't be found). */
  9 
 10 #include <stdio.h>
 11 
 12 #include <dibapi.h>
 13 
 14 #ifdef __cplusplus
 15 extern "C" {
 16 #endif  /* __cplusplus */
 17 #include <tina/sys.h>
 18 #include <tina/sysfuncs.h>
 19 #include <tina/math.h>
 20 #include <tina/tv.h>
 21 #include <tina/tv_screen.h>
 22 #ifdef __cplusplus
 23 }
 24 #endif  /* __cplusplus */
 25 
 26 extern void (*screen_text) (char *);
 27 #define Print(x)  if(screen_text!=NULL) screen_text(x)
 28 
 29 static char *default_font_name = "8x13";
 30 
 31 
 32 static Bool font_exists(Display * display, char *font_name)
 33 {
 34     int     count = 0;
 35 
 36     Print("font_exists?");
 37 
 38     return (Bool) count;
 39 }
 40 
 41 
 42 /* Set a named font (char*) in a tv_screen.  Sets tv_screen->font to
 43  * the corresponding font (XFontStruct*) */
 44 extern "C" void tv_screen_named_font_set(Tv_screen * tv_screen, char 
 45 *font_name)
 46 {
 47     Print("tv_screen_named_font_set?");
 48     if (tv_screen)
 49     {
 50     }
 51 }
 52 
 53 
 54 /* Get info on a font (XFontStruct*).  NB DOESN'T SET FONT IN TV_SCREEN */
 55 extern "C" void tv_screen_get_text_extent(Tv_screen * tv_screen, char 
 56 *font_name, char *string, int *xmin, int *xmax, int *ymin, int *ymax)
 57 {
 58     Print("tv_screen_get_text_extent?");
 59     if (tv_screen)
 60     {
 61     } else
 62     {
 63         *xmin = *xmax = *ymin = *ymax = 0;
 64     }
 65 }
 66 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.