appletfont.c File Reference

#include "appletdefs.h"
#include "appletstrings.h"
#include "appletfont.h"

Include dependency graph for appletfont.c:

Go to the source code of this file.

Defines

#define styleseparator   "\p+"
#define ctstyles   7

Functions

short sumcharwidths (void *pstring)
void setfontsizestyle (short fontnum, short fontsize, short fontstyle)
void setglobalfontsizestyle (short fontnum, short fontsize, short fontstyle)
short setnamedfont (bigstring bs, short fsize, short fstyle, short defaultfont)
void getfontsizestyle (short *fontnum, short *fontsize, short *fontstyle)
void getstyle (short style, short *flplain, short *flbold, short *flitalic, short *flunderline, short *floutline, short *flshadow)
void checkstyle (boolean fl, bigstring bsin, bigstring bsout)
short getfontheight (void)
void fontgetname (short fontnum, bigstring fontname)
void fontgetnumber (bigstring fontname, short *fontnum)
void diskgetfontname (short fontnum, diskfontstring fontname)
void diskgetfontnum (diskfontstring fontname, short *fontnum)
void getnextfont (short *fontnum)
void getprevfont (short *fontnum)
void getnextstyle (short *style)
void getprevstyle (short *style)

Variables

FontInfo globalfontinfo
short stylesarray [ctstyles]


Define Documentation

#define ctstyles   7
 

Definition at line 16 of file appletfont.c.

Referenced by getnextstyle(), and getprevstyle().

#define styleseparator   "\p+"
 

Definition at line 12 of file appletfont.c.

Referenced by checkstyle().


Function Documentation

void checkstyle boolean  fl,
bigstring  bsin,
bigstring  bsout
 

Definition at line 160 of file appletfont.c.

References copystring(), pushstring(), and styleseparator.

Here is the call graph for this function:

void diskgetfontname short  fontnum,
diskfontstring  fontname
 

Definition at line 200 of file appletfont.c.

References bigstring, copystring(), diskfontnamelength, fontgetname(), setstringlength, and stringlength.

Here is the call graph for this function:

void diskgetfontnum diskfontstring  fontname,
short fontnum
 

Definition at line 218 of file appletfont.c.

References fontgetnumber(), geneva, and stringlength.

Here is the call graph for this function:

void fontgetname short  fontnum,
bigstring  fontname
 

Definition at line 185 of file appletfont.c.

References setstringlength.

void fontgetnumber bigstring  fontname,
short fontnum
 

Definition at line 191 of file appletfont.c.

References bigstring, BIGSTRING, cachedfontname, cachedfontnum, copystring(), equalstrings(), geneva, mapxfont(), nullterminate, and stringlength.

Here is the call graph for this function:

short getfontheight void   ) 
 

Definition at line 175 of file appletfont.c.

References info.

Referenced by appdefaultscroll().

void getfontsizestyle short fontnum,
short fontsize,
short fontstyle
 

Definition at line 81 of file appletfont.c.

References quickdrawglobal.

void getnextfont short fontnum  ) 
 

Definition at line 227 of file appletfont.c.

void getnextstyle short style  ) 
 

Definition at line 293 of file appletfont.c.

References ctstyles, i, and stylesarray.

void getprevfont short fontnum  ) 
 

Definition at line 260 of file appletfont.c.

void getprevstyle short style  ) 
 

Definition at line 314 of file appletfont.c.

References ctstyles, i, and stylesarray.

void getstyle short  style,
short flplain,
short flbold,
short flitalic,
short flunderline,
short floutline,
short flshadow
 

Definition at line 91 of file appletfont.c.

References bold, italic, outline, shadow, and underline.

void setfontsizestyle short  fontnum,
short  fontsize,
short  fontstyle
 

Definition at line 42 of file appletfont.c.

void setglobalfontsizestyle short  fontnum,
short  fontsize,
short  fontstyle
 

Definition at line 52 of file appletfont.c.

References tyFontInfo::ascent, bold, tyFontInfo::descent, globalfontinfo, italic, tyFontInfo::leading, setfontsizestyle(), short, and underline.

Here is the call graph for this function:

short setnamedfont bigstring  bs,
short  fsize,
short  fstyle,
short  defaultfont
 

Definition at line 60 of file appletfont.c.

References fontgetnumber(), and setglobalfontsizestyle().

Here is the call graph for this function:

short sumcharwidths void *  pstring  ) 
 

Definition at line 29 of file appletfont.c.

References i, and stringlength.


Variable Documentation

FontInfo globalfontinfo
 

Definition at line 14 of file appletfont.c.

short stylesarray[ctstyles]
 

Initial value:

 
    
    {0, bold, italic, underline, 
    
    bold + italic, bold + underline, 
    
    italic + underline}

Definition at line 18 of file appletfont.c.

Referenced by getnextstyle(), and getprevstyle().


Generated on Wed May 31 20:49:22 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6