* Load fetaText through the emmentaler OTF font.
* Put Emmentaler design size into the font name.
* Stop installing PFB files.
\vcenter {
\override #'(font-encoding . fetaBraces)
\lookup #"brace120"
- \override #'(font-encoding . fetaNumber)
- \column { 1 3 }
- \override #'(font-encoding . fetaDynamic)
- sf
+ \override #'(font-encoding . fetaText)
+ \column { 1 3 sf }
\override #'(font-encoding . fetaMusic)
\lookup #"noteheads.s0petrucci"
}
/* Extra trailing slash suddenly breaks fontconfig (fc-cache 2.5.0)
on windows. */
dirs.push_back (lilypond_datadir + "/fonts/otf");
- dirs.push_back (lilypond_datadir + "/fonts/type1");
for (vsize i = 0; i < dirs.size (); i++)
{
{
SCM chain = me->get_property_alist_chain (Font_interface::text_font_alist_chain (me));
chain = scm_cons (scm_list_1 (scm_cons (ly_symbol2scm ("font-encoding"),
- ly_symbol2scm ("fetaNumber"))),
+ ly_symbol2scm ("fetaText"))),
chain);
SCM sn = Text_interface::interpret_markup (me->layout ()->self_scm (), chain,
$< --dir=$(outdir)
ALL_FONTS = $(FETA_FONTS)
-PFB_FILES = $(ALL_FONTS:%=$(outdir)/%.pfb)
# Make tfm files first, log files last,
# so that normally log files aren't made twice
$(LISP_FILES) \
$(OTF_TABLES) \
$(NCSB_OTFS) \
- $(PFB_FILES) \
$(OTF_FILES) \
$(SVG_FILES)
INSTALLATION_OUT_DIR2 = $(local_lilypond_datadir)/fonts/svg
INSTALLATION_OUT_FILES2 = $(SVG_FILES)
-INSTALLATION_OUT_DIR3 = $(local_lilypond_datadir)/fonts/type1
-INSTALLATION_OUT_FILES3 = $(PFB_FILES)
-
export MFINPUTS := .:$(MFINPUTS)
return str
+@rule ((2, 13, 16),
+ _ ("Unify fetaNumber and fetaDynamic encodings"))
+def conv(str):
+ return re.sub(r'\bfeta(Number|Dynamic)', 'fetaText', str)
+
# Guidelines to write rules (please keep this at the end of this file)
#
# - keep at most one rule per version; if several conversions should be done,
category for selecting a font. Currently, only lilypond's system
fonts (Emmentaler) are using this property. Available
values are @code{fetaMusic} (Emmentaler), @code{fetaBraces},
-@code{fetaNumber} (Emmentaler), and @code{fetaDynamic} (Emmentaler).")
+@code{fetaText} (Emmentaler).")
(font-family ,symbol? "The font family is the broadest category
for selecting text fonts. Options include: @code{sans},
@code{roman}.")
(DoublePercentRepeatCounter
. (
(direction . ,UP)
- (font-encoding . fetaNumber)
+ (font-encoding . fetaText)
(font-size . -2)
(padding . 0.2)
(self-alignment-X . ,CENTER)
(direction . ,ly:script-interface::calc-direction)
(extra-spacing-width . (+inf.0 . -inf.0))
- (font-encoding . fetaDynamic)
+ (font-encoding . fetaText)
(font-series . bold)
(font-shape . italic)
(outside-staff-priority . 250)
(avoid-slur . around)
(cross-staff . ,ly:side-position-interface::calc-cross-staff)
(direction . ,ly:script-interface::calc-direction)
- (font-encoding . fetaNumber)
+ (font-encoding . fetaText)
(font-size . -5) ; don't overlap when next to heads.
(padding . 0.5)
(positioning-done . ,ly:script-interface::calc-positioning-done)
. (
(bound-padding . 2.0)
(direction . ,UP)
- (font-encoding . fetaNumber)
+ (font-encoding . fetaText)
(padding . 0.4)
(self-alignment-X . ,CENTER)
(side-axis . ,Y)
(PercentRepeatCounter
. (
(direction . ,UP)
- (font-encoding . fetaNumber)
+ (font-encoding . fetaText)
(font-size . -2)
(padding . 0.2)
(self-alignment-X . ,CENTER)
(StringNumber
. (
(avoid-slur . around)
- (font-encoding . fetaNumber)
+ (font-encoding . fetaText)
(font-size . -5) ; don't overlap when next to heads.
(padding . 0.5)
(script-priority . 100)
. (
(direction . ,UP)
(edge-height . (2.0 . 2.0)) ;; staff-space;
- (font-encoding . fetaNumber)
+ (font-encoding . fetaText)
(font-size . -4)
(stencil . ,ly:volta-bracket-interface::print)
(thickness . 1.6) ;; line-thickness
}
@end lilypond"
(interpret-markup layout
- (cons '((font-size . -5) (font-encoding . fetaNumber)) props)
+ (cons '((font-size . -5) (font-encoding . fetaText)) props)
arg))
(define-markup-command (abs-fontsize layout props size arg)
}
}
@end lilypond"
- (interpret-markup layout (prepend-alist-chain 'font-encoding 'fetaNumber props) arg))
+ (interpret-markup layout (prepend-alist-chain 'font-encoding 'fetaText props) arg))
(define-markup-command (roman layout props arg)
(markup?)
}
@end lilypond"
(interpret-markup
- layout (prepend-alist-chain 'font-encoding 'fetaDynamic props) arg))
+ layout (prepend-alist-chain 'font-encoding 'fetaText props) arg))
(define-markup-command (text layout props arg)
(markup?)
; backward slashes might use slope and point in the other direction!
(dy (* mag (if forward 0.4 -0.4)))
(number-stencil (interpret-markup layout
- (prepend-alist-chain 'font-encoding 'fetaNumber props)
+ (prepend-alist-chain 'font-encoding 'fetaText props)
(number->string num)))
(num-x (horizontal-slash-interval num forward (ly:stencil-extent number-stencil X) mag))
(center (interval-center (ly:stencil-extent number-stencil Y)))
;; lookup-font should be written in C.
;;
+;; We have a tree, where each level of the tree is a qualifier
+;; (eg. encoding, family, shape, series etc.) this defines the levels
+;; in the tree. The first one is encoding, so we can directly select
+;; between text or music in the first step of the selection.
+(define default-qualifier-order
+ '(font-encoding font-family font-shape font-series))
+
(define-class <Font-tree-element>
())
(hash-table->alist (font-children node)))
(display "} }\n"))
-(define default-qualifier-order
- '(font-encoding font-family font-shape font-series))
(define-method (add-font (node <Font-tree-node>) fprops size-family)
(define (assoc-delete key alist)
(g-lookup-font node alist-chain))
-;; Ugh. Currently, we load the PFB Feta fonts for `fetaDynamic' with
+;; Ugh. Currently, we load the PFB Feta fonts for `fetaText' with
;; Pango. This should be changed to load the Emmentaler fonts instead
;; (with Pango too), but then we need support for a `font-style'
;; property which isn't implemented yet.
(list->vector
(map (lambda (tup)
(cons (ly:pt (cdr tup))
- (format "feta-alphabet~a ~a"
+ (format "emmentaler~a ~a"
(car tup)
(ly:pt (cdr tup)))))
'((11 . 11.22)
NAME is the basename for the music font. NAME-DESIGNSIZE.otf should be the music font,
NAME-brace.otf should have piano braces.
DESIGN-SIZE-LIST is a list of numbers, used as suffix for font filenames
- FACTOR is size factor relative to default size that is being used. This is used
- to select the proper design size for text fonts.
+ FACTOR is size factor relative to default size that is being used.
+ This is used to select the proper design size for the text fonts.
"
(for-each
(lambda (x)
(cons 'font-family family))
(cons (* factor (cadr x))
(caddr x))))
- `((fetaDynamic ,(ly:pt 20.0) ,feta-alphabet-size-vector)
- (fetaNumber ,(ly:pt 20.0) ,feta-alphabet-size-vector)
+ `((fetaText ,(ly:pt 20.0) ,feta-alphabet-size-vector)
(fetaMusic ,(ly:pt 20.0)
,(list->vector
(map (lambda (size)
(define-public all-music-font-encodings
'(fetaBraces
- fetaDynamic
fetaMusic
- fetaNumber))
+ fetaText))
(define-public (magstep s)
(exp (* (/ s 6) (log 2))))