On Sat, 30 Oct 2004, EECS 382 student wrote: > Is it necessary for out browsers to scan an entire line to > determine what the correct ascent and descent of the line should be? > in a scenario where fonts get larger as the line progresses, > it is possible that they may overwrite parts of the line above. > do we need to handle this situation? > Good observation. No, that would require a look ahead buffer (or multi-pass text layout with backward line fixup.) which would make the assignment too difficult. At least you can now appreciate the browser complexity of just a single line. That idea could be used a possible class project combining with images and other 2-D & 3-D objects (i.e. the new futuristic eecs382 browser :-) In class, I mentioned that you keep a max ascent variable and a max descent variable (i.e. maxa, maxd) which you update for each character in the line (i.e. maxa=max(maxa, new text character ascent); and maxd=max(maxd, new text character descent);). Of course, maxa and maxd are cleared on the start of a new line. This only handles the descent sub-scripting case only which I do require for this assignment. --frank.