so as to register the pango font.
* lily/main.cc: only look at one prefix directory, LILYPONDPREFIX
overrides all.
* scm/framework-ps.scm (dump-page): use output-units for landscape.
2005-03-06 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/pango-select.cc (select_pango_font): use ::find_pango_font,
+ so as to register the pango font.
+
* lily/font-config.cc (init_fontconfig): add
prefix/{otf,type1,mf/out} to fontconfig path.
call_constructors ();
init_global_tweak_registry ();
init_fontconfig ();
- test_pango();
init_freetype ();
{
PangoFontDescription *pfd = properties_to_pango_description (chain,
point_constant * layout->get_dimension (ly_symbol2scm ("text-font-size")));
-
- return all_fonts_global->find_pango_font (pfd, 1.0, output_scale (layout));
+
+ char * str = pango_font_description_to_string (pfd);
+ SCM scm_str = scm_makfrom0str (str);
+ gfree (str);
+
+ return find_pango_font (layout, scm_str, 1.0);
}
PangoStyle
(a-file-name (ly:kpathsea-find-file aname))
(b-file-name (ly:kpathsea-find-file bname))
)
+ (display x )(newline)
(cond
((and bare-file-name (string-match "\\.pfb" bare-file-name))
(ly:pfb->pfa bare-file-name))
+ ((and bare-file-name
+ (string-match "\\.otf" bare-file-name))
+
+ (display "HOI\n")
+ (cached-file-contents (string-regexp-substitute "otf" "cff.ps" bare-file-name)))
((and bare-file-name (string-match "\\.ttf" bare-file-name))
(ly:ttf->pfa bare-file-name))
(bare-file-name (cached-file-contents bare-file-name))
(cons x (cons between y))))
(fold-right conc #f lst))
+
+(define-public (string-regexp-substitute a b str)
+ (regexp-substitute/global #f a str 'pre b 'post))
+
;;;;;;;;;;;;;;;;
; other
(define (sign x)