On Fri, Jan 27, 2006 at 10:21:55AM +0100, Jean-Marc Lasgouttes wrote: > >>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > Could you tell me in a few words why !isMainText() is needed?
It isn't actually needed... I tried without and seems to work OK. But conversely allowing this call for the main text is nonsense too. I like to minimize impact even if it means more LOC. What happens is, that we first define a "background font" against which the actual font will be reduced. It's initialized to the layout font, then completed with the font(s) of paragraphs "above" it in a list environment hierarchy (if any, and if they are any different), and then completed with the "inset's font contribution". This exists *only* for charstyle insets, but I decided not to make the test *that* precise. Finally we have the buffer font (= document font), which is the documentclass's font plus the buffer's language setting. The background font is realized for this too. And then finally, the lyxtext's font is reduced against this end result, i.e., the background font (currently called "layoutfont"). Now, what is the "inset's font contribution" for the main text? Doesn't exist / is represented already by the buffer font. Clear? - Martin
pgpdh3i2mzEC7.pgp
Description: PGP signature
