I am using LaTeX (pdflatex) and Lilypond together for a critical music edition, using the EB Garamond typeface for both. The two programs are giving me different glyphs for "Q": LaTeX provides a regular Q and Lilypond provides a swashy Q. I want the regular Q in both documents. Compare the results of the MWEs below.
The font provided by the ebgaramond package provides a swashy Q ligature.
The ligature is not enabled by default in the version of the font loaded by pdflatex with T1 encoding. It is, apparently, enabled by default in the version of the font that Lilypond loads via pango. Lilypond's font loading is dependent on the system, and mine is Debian GNU/Linux v8 with Gnome v3.14.1.
Another question here (A Big fancy "Q") shows how to get the swashy Q in LaTeX (using lualatex and loading the font with the "Contextuals=Alternate" option). But I like the default pdflatex output and I don't want the swashy Q in Lilypond!
How can I get Lilypond to load the font file without the swashy Q ligature?
Why this is on topic: Lilypond is loading a font provided by a LaTeX package, ebgaramond, but it is loading it in a different way than the way LaTeX loads it. Thus this is about the interaction of Lilypond with a LaTeX package, though not necessarily with LaTeX itself.
Examples
File texquack.tex -- compile with pdflatex:
\documentclass{article}
\usepackage{ebgaramond}
\usepackage[T1]{fontenc}
\pagestyle{empty}
\begin{document}
Quack
\end{document}
File lyquack.ly -- compile with lilypond:
\version "2.18.2"
\header {
title = "Quack"
tagline = ##f
}
\paper {
line-width=2\in
#(define fonts
(make-pango-font-tree
"EB Garamond" "" ""
(/ staff-height pt 20)))
}
\score {
\new Staff
<<
\new Voice { a'1 }
\new Lyrics \lyricmode { Quack }
>>
}


/Library/Fontsfolder and I get the regular Q. This shows that LilyPond is using the system version of the font not the TeX version of the font. So maybe update your font? – Alan Munn Jul 12 '16 at 20:58/usr/local/texlive/2016/texmf-dist/fonts/opentype/public/ebgaramond; the system is configured (via.fonts.conf) to use the LaTeX fonts. – musarithmia Jul 12 '16 at 21:45