The font problems probably stem from the fact that we have a mixture
of high level LaTeX and low level TeX font commands.
I guess we need two versions of the text font definitions in lilypinddefs.tex
The current one for people who use pure TeX and a new one for LaTeX users.
Sketch of a solution:
\ifundefined{documentclass}
\def\settext#1{\normaltextfont #1}
\def\setitalic#1{\italicfont #1}
\def\setbold#1{\boldfont #1}
\def\setlarge#1{\largefont #1}
\else
\def\settext#1{\textnormal{#1}}
\def\setitalic#1{\textit{#1}}
\def\setbold#1{\textbf{#1}}
\def\setlarge#1{\large #1}
\fi
\def\setdynamic#1{\dynfont #1}
\def\setfinger#1{\fingerfont #1}
I haven't tried it and I'm still not sure how to set the sizes
based on the fontsize used in the music. Certainly we could define
versions of the commands cmrtwenty, ... but it is probably much
easier to use the standard sizes offered by the article class
and let ly2dvi generate the correct 10pt, 11pt or 12pt option to
\documentclass.
Jan Arne, once we have the correct LaTeX font commands, you should add
\usepackage[latin1]{inputenc}
in the generated file header so we can use the full latin1 character set
and write e.g. "Un peu plus lent et �l�gant" directly in the .ly file.
The Latin1 character set is already supported in Lilypond.
/Mats