2002-05-22 Han-Wen <hanwen@cs.uu.nl>
+ * mf/feta-beugel.mf (code): use autometric macros for braces.
+ This fixes input/bugs/braces.
+
+ * lily/afm.cc (count): return numOfChars, not size of array
+ (always equals 256.)
+
* lily/script.cc (before_line_breaking): postpone setting the
X-parent of vertical scripts. This fixes the case of scripts on
chords with seconds
+++ /dev/null
-\header {
-texidoc="The sharp is printed too far to the left."
-}
-
-\version "1.4.0"
-\score {
-\notes \context Staff <
- \context Voice = up {\stemUp gis''4}
- \context Voice = dwn {\stemDown <ces' d'>}
->
-}
+++ /dev/null
-\header {
-texidoc="The two sharps overstrike, the flat and sharp overstrike"
-}
-\version "1.3.148"
-
-\include "paper16.ly"
-\score {
- \notes {
- \relative c'' \context Voice \sequential {
- <dis1 ais e> <bes dis>
- }
- }
- \paper{
- linewidth = 5.0\cm
- }
-}
+++ /dev/null
-\version "1.3.148"
-
-
-\header {
-texidoc = "Braces at different sizes don't attach exactly to the staffs.
-Previously, some braces were too small, while others were too big; this was
-apparently caused by dvips + mf rounding. Now, braces are just a bit
-too big."
-}
-
-\include "paper11.ly"
-\paper { linewidth = -1.0 }
-
-\score {
- \context GrandStaff <
- \context Staff = a \notes c''1
- \context Staff = b \notes c''1
- >
-}
-
-
-\include "paper13.ly"
-\paper { linewidth = -1.0 }
-
-\score {
- \context GrandStaff <
- \context Staff = a \notes c''1
- \context Staff = b \notes c''1
- >
- \paper {
- \translator {
- \GrandStaffContext
- SystemStartDelimiter \override #'weird = #-5
- }
- }
-}
-
-
-\include "paper16.ly"
-\paper { linewidth = -1.0 }
-
-\score {
- \context GrandStaff <
- \context Staff = a \notes c''1
- \context Staff = b \notes c''1
- >
- \paper {
- \translator {
- \GrandStaffContext
- SystemStartDelimiter \override #'weird = #5
- }
- }
-}
-
-
-\include "paper20.ly"
-\paper { linewidth = -1.0 }
-
-\score {
- \context GrandStaff <
- \context Staff = a \notes c''1
- \context Staff = b \notes c''1
- >
- \paper {
- \translator {
- \GrandStaffContext
- SystemStartDelimiter \override #'weird = #-7
- }
- }
-}
-
-
-\include "paper26.ly"
-\paper { linewidth = -1.0 }
-
-\score {
- \context GrandStaff <
- \context Staff = a \notes c''1
- \context Staff = b \notes c''1
- \context Staff = c \notes c''1
- \context Staff = d \notes c''1
- >
-}
+++ /dev/null
-\version "1.3.148"
-\header {
-texidoc="Should use old style."
-}
-
-\score {
- \notes {
- \property Staff.TimeSignature \override #'style = #'oldC4/4
- s1
- }
-}
--- /dev/null
+\version "1.3.148"
+\header {
+texidoc="Should use old style."
+}
+
+\score {
+ \notes {
+ \property Staff.TimeSignature \override #'style = #'oldC4/4
+ \property Staff.TimeSignature \override #'font-family = #'ancient
+ s1
+ }
+}
int
Adobe_font_metric::count () const
{
- return ascii_to_metric_idx_.size ();
+ return font_inf_->numOfChars ;
+ // return ascii_to_metric_idx_.size ();
}
Box
# don't try to make fonts from test files
TEST_FILES = $(wildcard *test*.mf)
FET_FILES = $(filter-out $(TEST_FILES),\
- $(wildcard feta[0-9]*.mf) $(wildcard parmesan[0-9]*.mf))
+ $(wildcard feta[0-9]*.mf) $(wildcard parmesan[0-9]*.mf))\
+ $(wildcard feta-braces*[0-9].mf)
+
FONT_FILES = $(filter-out $(TEST_FILES),\
-$(wildcard feta*[0-9].mf) $(wildcard parmesan*[0-9].mf))
+ $(wildcard feta*[0-9].mf) $(wildcard parmesan*[0-9].mf)) \
XPM_FONTS = feta20 feta-nummer10 feta-braces20
#CM_AFM_FILES = cmr10
code := 0;
+def abc_encode_int (expr i) =
+ if i > 0:
+ abc_encode_int(i div 26)&char(65 + i mod 26)
+ else:
+ "A"
+ fi
+enddef ;
+
+message (abc_encode_int (26));
+
def draw_brace (expr height_sharp, width_sharp, slt_sharp) =
save pendir, height, width, thin, thick, slt;
width# := width_sharp;
slt# := slt_sharp;
- beginchar(code, width#, height#/2, height#/2);
- code := incr code;
+fet_beginchar("brace number "&(decimal code), "brace"&abc_encode_int(code),
+ "brace"&abc_encode_int (code))
+
+ set_char_box (0, width#, height#/2, height#/2);
define_pixels (height, width, slt);
thin = 2 slt;
.. z2l .. simple_serif (z1l, z1r, 90) ..cycle;
addto currentpicture also currentpicture yscaled -1;
-endchar;
+fet_endchar;
enddef;