* lily/font-config.cc (init_fontconfig): add warning about cache.
+2005-05-17 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * scm/lily.scm (running-from-gui?): Darwin never runs from GUI.
+
+ * lily/font-config.cc (init_fontconfig): add warning about cache.
+
2005-05-16 Jan Nieuwenhuizen <janneke@gnu.org>
* lily/main.cc (setup_paths)[ARGV0_RELOCATION]:
error (_ ("initializing FontConfig"));
FcConfig *fcc = FcConfigGetCurrent ();
+
+ FcChar8 *cache = FcConfigGetCache (fcc);
+ if (!FcDirCacheValid (cache))
+ {
+ warning (_ ("FontConfig cache out of date. Rebuilding may take some time."));
+ }
+
Array<String> dirs;
struct stat statbuf;
String builddir = prefix_directory + "/mf/out/";
(define (running-from-gui?)
(let ((have-tty? (isatty? (current-input-port))))
+
;; If no TTY and not using safe, assume running from GUI.
;; For mingw, the test must be inverted.
- (if (eq? PLATFORM 'windows)
- have-tty? (not have-tty?))))
+
+ (cond
+ ((eq? PLATFORM 'windows) have-tty?)
+ ((eq? PLATFORM 'Darwin) #f)
+ (else
+ (not have-tty?)))))
(define-public (gui-main files)
(if (null? files) (gui-no-files-handler))