[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tex backend
From: |
Dr. Johannes Zellner |
Subject: |
Re: tex backend |
Date: |
Tue, 13 Feb 2007 18:00:32 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hi Till and all,
this was very valuable help indeed! I installed texlive-fonts-extra
which contains the Antykwa Torunska otf files. Then I linked the whole
directory into ~/.fonts. Then I used
myStaffSize = #26
#(define fonts
(make-pango-font-tree "AntykwaTorunska"
"AntykwaTorunska"
"AntykwaTorunska"
(/ myStaffSize 26)))
which gave me AntykwaTorunska in the lilypond output!
BUT: if the lyrics contain special characters as german umlauts
(äöü, ...), The lilypond-book output is corrupted and contains
postscript errors -- it can't be displayed by gv nor printed.
I included the lilypond files with \lilypondfile in my latex file.
If I translate the lilypond file on it's own with lilypond, the
postscript output is ok. If I translate the latex file with
lilypond-book, the output has postscript errors. Both the latex file and
the .ly files are utf-8 encoded. The latex file contains:
\usepackage[utf-8]{inputenc}
Any ideas how to get it also working with umlauts?
--
Johannes
On Mon, Feb 12, 2007 at 09:33:14AM +0200, Till Rettig wrote:
>
> You wrote:
> See also my other post from today where I ask how I could get a font
> like (in latex)
>
> \newfont{\lyfontFont}{texnansi-anttr scaled 1440}
>
> for the lilypond lyrics.
>
> I guess lilypond-book would perfectly do the job if I could manage to
> get this font for the font lyrics.
>
> I tried
>
> \override Score . LyricText #'font-name = #"texnansi-anttr"
>
> but this didn't work.
>
> As far as I have understood this it is fairly easy to use otf fonts with
> lilypond, there is a part in the documentation, I don't just remember the
> exact part but you will find it, it is about using other fonts (in the
> example times and arial, I think). Just insert this kind of line into the
> head of your files and you will get the font globally converted.
> With #(ly:font-config-display-fonts) you get all fonts that can be used by
> lilypond in an easy way of inserting the line:
> \override #'(font-name . "Warnock Pro" -- change the name to something you
> have. Lilypond is looking for fonts in the fonts direcotry via pango, so
> the normal way you install fonts on your debian should do it.
>
> Since you use Antykwa torunska (is that right) they distribution also
> includes otf fonts of the same font. Just pick them from there tex path and
> copy them to the font directory, run the font update mechanism and it
> should show in the list given from the first command in my mail.
>
> hope this helpes you.