[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fonts in svg backend
From: |
Richard Shann |
Subject: |
Fonts in svg backend |
Date: |
Fri, 04 Dec 2015 15:38:11 +0000 |
When I compile this
\version "2.19.25"
{ c'4 \tempo Adagio 4=72 d'4 e' \tempo Presto 4=168 f'4 g' }
with lilypond I get a nice PDF (evince screenshot attached) but when I
use
lilypond -dbackend=svg junk.ly
or
lilypond -dbackend=svg junk.ly
then I see the text badly rendered (inkscape screenshot attached).
I copied the fonts from the LilyPond installation to ~/.fonts like the
documentation said
http://www.lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage
but this made no difference, the 2.19 Documentation says more - that
\paper {
#(define fonts
(make-pango-font-tree "TeX Gyre Schola"
"TeX Gyre Heros"
"TeX Gyre Cursor"
(/ staff-height pt 20)))
}
needs to be added, but again this made no difference, perhaps it wasn't
meant literally? I see these fonts are installed on my (Debian Jessie)
system. And they do make it into the output svg as
<text transform="translate(5.6906, 2.8453)" font-family="TeX Gyre Schola"
font-size="2.2001" text-anchor="start" fill="black">
where I have changed the fill color to "black" as currentColor causes
problems rendering with Gtk/Cairo.
Anybody on top of this?
Richard
Screenshot from 2015-12-04 15:16:11.png
Description: PNG image
Screenshot from 2015-12-04 15:15:28.png
Description: PNG image
- Fonts in svg backend,
Richard Shann <=