mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Help_View.cxx
int // O - font list index
Fl_Help_View::font_style(int fi, // I - font list index
                         unsigned char fs) // I - font style 0..3
{
  int ti = 0; // temp loop var

  if (fs > 3 || fi >= (int)sizeof(fref_)) return 0; // avoid crash
  for (ti = 0; ti <= 3; ti ++) // find style
    if (fi == face_[fref_[fi]][ti]) break;
  ti |= fs; // combine bits
  return face_[fref_[fi]][ti];

}
// Usage: the font style argument takes the values:
// medium as 0, bold as 1, italic as 2, plus as 3.
the font style argument takes the values:
medium as 0, bold as 1, italic as 2, plus as 3.
the font style argument takes the values : medium as 0 bold as 1 italic as 2 plus as 3 .
int 
Fl_Help_View::font_style(int fi, 
                         unsigned char fs) 
{
  int ti = 0; 
  if (fs > 3 || fi >= (int)sizeof(fref_)) return 0; 
  for (ti = 0; ti <= 3; ti ++) 
    if (fi == face_[fref_[fi]][ti]) break;
  ti |= fs; 
  return face_[fref_[fi]][ti];
}
int Fl_Help_View :: font_style ( int fi , unsigned char fs ) { int ti = 0 ; if ( fs > 3 || fi >= ( int ) sizeof ( fref_ ) ) return 0 ; for ( ti = 0 ; ti <= 3 ; ti ++ ) if ( fi == face_ [ fref_ [ fi ] ] [ ti ] ) break ; ti |= fs ; return face_ [ fref_ [ fi ] ] [ ti ] ; }
Usage: the font style argument takes the values:
medium as 0, bold as 1, italic as 2, plus as 3.
Usage : the font style argument takes the values : medium as 0 bold as 1 italic as 2 plus as 3 .
// O - font list index // I - font list index // I - font style 0..3 // temp loop var // avoid crash // find style // combine bits