faxd/TagLine.c++
/*
 * Calculate a ``slop factor'' to use in processing the tag line.
 * This is the amount of space to preallocate for storing the
 * encoded tag line once its been imaged.  We guestimate that
 * the encoded data will be <= the amount of space needed to store
 * the unencoded bitmap raster.  If this number is low then the
 * encoded raster will be truncated resulting in the tag line
 * being cropped at the bottom; probably together with a decoding
 * error of one row at the receiver.
 */
Calculate a ``slop factor'' to use in processing the tag line.
This is the amount of space to preallocate for storing the
encoded tag line once its been imaged.  We guestimate that
the encoded data will be <= the amount of space needed to store
the unencoded bitmap raster.  If this number is low then the
encoded raster will be truncated resulting in the tag line
being cropped at the bottom; probably together with a decoding
error of one row at the receiver.
Calculate a ` ` slop factor ' ' to use in processing the tag line . This is the amount of space to preallocate for storing the encoded tag line once its been imaged . We guestimate that the encoded data will be < = the amount of space needed to store the unencoded bitmap raster . If this number is low then the encoded raster will be truncated resulting in the tag line being cropped at the bottom ; probably together with a decoding error of one row at the receiver .
bool
FaxModem::setupTagLineSlop(const Class2Params& params)
{
    if (tagLineFont->isReady() && tagLineFields > 0) {
	if (params.jp) {
	    tagLineSlop = 0;
	} else {
	    tagLineSlop = (tagLineFont->fontHeight()+MARGIN_TOP+MARGIN_BOT+SLOP_LINES) * 
		howmany(params.pageWidth(),8);
	}
	return (true);
    } else {
	tagLineSlop = 0;
	return (false);
    }
}
bool FaxModem :: setupTagLineSlop ( const Class2Params & params ) { if ( tagLineFont -> isReady ( ) && tagLineFields > 0 ) { if ( params . jp ) { tagLineSlop = 0 ; } else { tagLineSlop = ( tagLineFont -> fontHeight ( ) + MARGIN_TOP + MARGIN_BOT + SLOP_LINES ) * howmany ( params . pageWidth ( ) , 8 ) ; } return ( true ) ; } else { tagLineSlop = 0 ; return ( false ) ; } }
Calculate a ``slop factor'' to use in processing the tag line.
Calculate a ` ` slop factor ' ' to use in processing the tag line .
// color fax come to us decoded already, no slop needed  // as we write the tagline directly onto the bitmap.