Putting colors in initials

The lettrine package is very useful to typeset initials (or drop caps) in LaTeX. However, in order to get very nice initials, you might want to add some colors to them.

Georg Duffner, the creator of the EB Garamond open-source font, while adding initials to EB Garamond using a 16th century French Bible, had the idea of creating two fonts to typeset initials: one font for the background ornaments, and one font for the foreground letters. This way, you could color them in different colors and typeset much fancier initials.

The letter A in the Initials F1 font
The letter A in the Initials F1 font

The letter A in the Initials F2 font
The letter A in the Initials F2 font

I then worked on a LaTeX package to make use of this technique and ease the typesetting of colored initials in LaTeX. By loading the two different fonts with fontspec and superimposing them with \rlap, it is easy to superimpose the two characters:

\newcommand{\eblettrine}[3][]{%<br />
\renewcommand{\LettrineFontHook}{\EBLettrineBackFont}%<br />
\lettrine[#1]{%<br />
\rlap{\color{\EBLettrineBackColor} #2}%<br />
{\EBLettrineFrontFont\color{\EBLettrineFrontColor} #2}}{#3}%<br />
}<br />

The fine-tuning can be done by using the lettrine.cfg configuration file:

\setcounter{DefaultLines}{3}<br />
\renewcommand{\DefaultLoversize}{0.1}<br />
\renewcommand{\DefaultLraise}{0.25}<br />
\renewcommand{\DefaultFindent}{0.15em}<br />
\renewcommand{\DefaultNindent}{0pt}<br />

The font is far from finished. As of today, only 3 initials are ready to be used (A, G and T) and adding new initials requires a lot of work. The LaTeX package can be found on github and will be on CTAN once the alphabet is complete.

An example of colored initials in LaTeX
An example of colored initials in LaTeX

11 thoughts

  1. When converting these letters, are you working from an already existing font? That is, it is a question of completely redesigning them or is it adapting something that already exists in electronic form?

  2. @Bruno: the font only has 3 letters for now. Georg is working (very hard) on adding new glyphs.

    @Andrew: Georg uses mentioned 16th century Bible (http://www.bvh.univ-tours.fr/Consult/index.asp?numtable=B372615206_18229&numfiche=571&mode=1&offset=15&ecran=0&url=) to extract the initials and trace them in fontforge. It’s a huge work, and eventually there will be some letters missing (J, X, Y are a few examples), as well as duplicates (there’s 3 different A) which might become alternates.

  3. @Raphaël: I had thought from reading your article that Georg Duffner had already finished that font. I wish you guys good luck for the other \the\numexpr 26 – \missing + \duplicates \relax letters.

  4. No, the full alphabet has not been completed. This is a lot of work and Georg has been the only person doing it. You can get in touch with him if you’re interested. Also, some letters cannot be found in the Bible where the letters were taken from.

Leave a Reply to ADP Cancel reply

Your email address will not be published. Required fields are marked *