beamer font definitions are now standard latex based
implemented conditional font loading scheme
added demo frame to test font features
better implementation of monospaced numbers in tables
I’ve put a `\@metropolis@frametitlestrut` at the beginning and the end
because of what I can see will be an error for multiline titles.
Perhaps what @benjamin-weiss was alluding too?
If we were to put the strut at the end of a multiline title, then if
the first line was nothing but lower case characters (for some reason…)
in a `frametitleformat=regular` situation then the strut would make
sure that the minimum height would still be that of a capital letter.
But, since this is a multiline title that only happens for the last
line.
If we thing of the opposite situation; the strut is at the beginning
but our final line is nothing but lowercase. Then the strut again makes
sure that the minimum height is that of a capital letter. But, this is
only applied to the first line now. To rectify this I’ve put a strut at
both the beginning and the end. Now, this won’t help If the presenter
has a multiline title that is three or more lines long (god forbid) but
in that case the standard leading and `\baselinskip` should take care
of it. Also, the central line(s) shouldn’t effect the padding around
the title anyway.
Earlier versions of Beamer (or XeLaTeX?) did not respect `\centering` on the only line of a page. This is fixed by replacing `\centering` with the `center` environment, which breaks the paragraph before and after the line.
Used the \heightof{} command from the calc package to ensure that the
height used as a strut in the beamercolorbox is consistent.
The height is set to the height of the tallest character of the font in
a typeface independent manner, and also depending on whether the frame
title is set in small caps uppercase or regular case. This ensure that
the colorbox is always the height of the text plus 1.5ex above and
below the text independent of format, text size, ratio and typeface.
Changes the box parameters from:
leftskip=0.3cm,
rightskip=0.3cm,
ht=2.5ex,
dp=1.5ex
to:
sep=1.5ex
And added a strut to ensure short characters always make a minimum box
height of 4.5 ex if there are small (e.g. -) characters in the title
only.