* scm/font.scm: remove properties-to-font-name code.
* scripts/convert-ly.py (FatalConversionError.conv): type -> style
conversion
2003-06-23 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * lily/line-spanner.cc (line_molecule): bugfix for trill style.
+
+ * scm/font.scm: remove properties-to-font-name code.
+
* scm/define-grob-properties.scm: remove 'type
* scripts/convert-ly.py (FatalConversionError.conv): type -> style
&& type == ly_symbol2scm ("trill"))
{
SCM alist_chain = Font_interface::font_alist_chain (me);
- SCM style_chain = scm_list_n (gh_cons (ly_symbol2scm ("font-family"),
- ly_symbol2scm ("music")),
- SCM_UNDEFINED);
+ SCM style_alist = scm_list_n (gh_cons (ly_symbol2scm ("font-family"),
+ ly_symbol2scm ("music")),
+ SCM_UNDEFINED);
Font_metric *fm = Font_interface::get_font (me,
- scm_list_n (style_chain,
- alist_chain,
- SCM_UNDEFINED));
+ gh_cons (style_alist,
+ alist_chain));
Molecule m = fm->find_by_name ("scripts-trill-element");
do
mol.add_at_edge (X_AXIS, RIGHT, m, 0,0);
))
-(define (chain-assoc x alist-list)
- (if (null? alist-list)
- #f
- (let* ((handle (assoc x (car alist-list))))
- (if (pair? handle)
- handle
- (chain-assoc x (cdr alist-list))))))
-
-;; TODO
-;; the C++ version in font-interface.cc is usually used.
-;;
-;; FIXME: this has silently been broken by the introduction
-;; of wildcards in the font list.
-(define (properties-to-font-name fonts properties-alist-list)
- (let* (
- ;; change order to change priorities of qualifiers.
- (q-order '(font-family font-series font-shape
- font-design-size font-relative-size))
- (rawqualifiers (map (lambda (x)
- (chain-assoc x properties-alist-list))
- q-order))
- (qualifiers (filter-list pair? rawqualifiers))
- (selected (find-first-font qualifiers fonts))
- (err (current-error-port)))
-
- (if (equal? selected "")
- (begin
- (display "\ncouldn't find any font satisfying " err)
- (write qualifiers err)
- "cmr10"
- )
- selected) ; return the topmost.
- ))
+; there used to be a Scheme properties-to-font-name function,
+; but that is superseeded by the C++ version out of speed concerns.
+
(define-public (markup-to-properties abbrev-alist style-alist markup)
"DOCME."
(string<? (symbol->string (car x))
(symbol->string (car y))))
+
+
+(define (chain-assoc x alist-list)
+ (if (null? alist-list)
+ #f
+ (let* ((handle (assoc x (car alist-list))))
+ (if (pair? handle)
+ handle
+ (chain-assoc x (cdr alist-list))))))
+
;;;;;;;;;;;;;;;;
; list
(define (tail lst)
def conv(str):
str = re.sub (
r"(set|override|revert) *#'type",
- r"\1 #'style"
+ r"\1 #'style",
str)
return str