bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Font selection problem in Lilypond


From: Didi Kanjahn
Subject: Font selection problem in Lilypond
Date: Wed, 5 May 2010 07:32:24 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

> I'm not top posting
Sometimes Lilypond does not select the correct font. It seems to have to do
either with the length of the font name or the number of spaces in the font 
name.
The lines 3 and 4 should be rendered in 2 different fonts so that line 3 is
essentially identical to line 2 (It is because of this problem that I changed
the font name).
However, it seems that Lilypond is defaulting to the font 'Khmer Mondulkiri' for
line 3 where the selected font name is 'Khmer Mondulkiri book'.

The font names are: 
Line 1:  Khmer OS
Line 2:  Khmer Busra
Line 3:  Khmer Mondulkiri book
Line 4:  Khmer Mondulkiri

The problem is old and was recently reproduced using Lilipond versions 2.13.3
and 2.13.19.

The file 'test (MS Word).pdf' shows the correct rendering of the lines, created
in MS Word on the same computer on which 'test Khmer Unicode 2-13-3.pdf' was
produced.

All fonts can be made available - they might be too big to attach here.
All of the above was done under Windows XP.

The font 'Khmer OS' can be downloaded at:
http://sourceforge.net/projects/khmer/files/Fonts%20-%20KhmerOS/KhmerOS%20Fonts%205.0-%20LGPL%20Licence/KhmerOS_.ttf/download

%% test Khmer Unicode.ly
one=  \relative c' \context Voice="soprano" {
   \clef "violin"
   \autoBeamOff
   \stemUp

   {\partial 4
      g'4
   }
}



VersOne =  \lyricmode { \set stanza = "1."
ឆ្វា ឞ្រា មៃ កើល ខ្ញុំខ្ញូំ ទ៏ៅ
}

global = {
    \time 4/4
    \key c \major
}
  
% Song title
\markup { 
  \column {
    \fill-line {
      \line {
        " "
      }
      \center-column {
        \override #'(font-name . "Khmer OS") \fontsize #4
          {"1. ឆ្វា ឞ្រា មៃ កើល ខ្ញុំខ្ញូំ ទ៏ៅ"}
        \override #'(font-name . "Khmer Busra") \fontsize 

#4
        {"2. ឆ្វា ឞ្រា មៃ កើល ខ្ញុំខ្ញូំ ទ៏ៅ"}
        \override #'(font-name . "Khmer Mondulkiri book") 

\fontsize #4
        {"3. ឆ្វា ឞ្រា មៃ កើល ខ្ញុំខ្ញូំ ទ៏ៅ"}
        \override #'(font-name . "Khmer Mondulkiri") 

\fontsize #4
        {"4. ឆ្វា ឞ្រា មៃ កើល ខ្ញុំខ្ញូំ ទ៏ៅ"}
        \override #'(font-name . "Khmer OS") \fontsize #4
          {"5. ខ្ញុំ ខ្ញូំ"}
        \override #'(font-name . "Khmer Busra") \fontsize 

#4
        {"6. ឆ្វា"}
        \override #'(font-name . "Khmer Busra") \fontsize 

#4
        {"7. ទ៏ៅ"}
      }
    }
  }
}
  
\score{
      \context Staff = women <<
         \context Voice = sopranos { \voiceOne << 

\global { \one } >> }

 >>

  \layout {
          indent = 0\cm
            \context {
                \Lyrics
                minimumVerticalExtent = #'(-0.5 . 2.5)
                \override LyricText #'font-name = #"Khmer 

Mondulkiri book"
                \override LyricText #'font-size = #0
            }
  }
}


%%% Local Variables:
%%% coding: utf-8
%%% End:






reply via email to

[Prev in Thread] Current Thread [Next in Thread]