Here's a puzzle about paragraph.c/GetLineMetrics(). The puzzling code
reads:
/* CRLF can be inserted anywhere if it is multibyte char */
if ( TxtGlueCharSize( nextToken ) == 2 ) {
lastSpacePixels = linePixels;
lastSpace = tokenCount;
lastSpaceHeight = *height;
lastSpaceIsVisible = false;
if ( measureOnly ) {
MemMove( &savedPContext, pContext,
sizeof( ParagraphContext ) );
savedFixedWidthFont = fixedWidthFont;
savedPrevFontHeight = GetPrevFontHeight();
}
savedPContext.position = prevPosition;
savedSubHeight = subHeight;
}
I have several questions:
1. This looks to me like it's checking for all two-byte length characters,
not just CRLF. This surely isn't correct behavior, because it will allow
line-breaking at any two-byte length character.
2. Thus, how do we check that the character is indeed CRLF? What is the
two-byte encoding of CRLF?
3. And why should there be a CRLF in the record given that we have
function 0x38 instead?
Alex
--
Dr. Alexander R. Pruss || e-mail: [EMAIL PROTECTED]
Philosophy Department || online papers and home page:
Georgetown University || www.georgetown.edu/faculty/ap85
Washington, DC 20057 ||
U.S.A. ||
-----------------------------------------------------------------------------
"Philosophiam discimus non ut tantum sciamus, sed ut boni efficiamur."
- Paul of Worczyn (1424)
_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev