]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/pango-font.cc
use -dbackend=eps iso. --backend=eps for setting backend.
[lilypond.git] / lily / pango-font.cc
index f1fb20e6c58758c04c2b070e4294ec0587e28152..43766881c28e6ba7e0d9c7da6e735ba23678363f 100644 (file)
@@ -23,6 +23,7 @@
 #include "string-convert.hh"
 #include "warn.hh"
 #include "all-font-metrics.hh"
+#include "program-option.hh"
 
 #if HAVE_PANGO_FT2
 #include "stencil.hh"
@@ -351,8 +352,8 @@ Pango_font::text_stencil (string str, bool tight) const
     UGH. Should have flags per output format signifying supported
     options.
   */
-  if (output_backend_global != "ps"
-      && output_backend_global != "eps")
+  string name = get_output_backend_name ();
+  if (name != "ps" && name != "eps")
     {
       /*
        For Pango based backends, we take a shortcut.