octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52193] Font choices are ignored when printing


From: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #52193] Font choices are ignored when printing to an image file
Date: Sun, 11 Nov 2018 20:15:54 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0

Follow-up Comment #66, bug #52193 (project octave):

The patch did not change anything:

octave:1> fullfile (__octave_config_info__ ("datadir"), "font",
"FreeSans.otf")
ans = /usr/local/share/font/FreeSans.otf

octave:2> type print.m
<......>

 if (isempty (opts.svgconvert_binary))
    warning ("octave:print:nosvgconvert", ...
             ["print.m: unale to find octave-svgconvert, ", ...
              "falling back to eps convertion"]);
  else
    fontdir = getenv ("OCTAVE_FONTS_DIR");
    
    if (isempty (fontdir))
      fontdir = __octave_config_info__ ("octfontsdir");
    endif
    
    cmd = sprintf ("%s - %%s %3.2f %s %d %%s", opts.svgconvert_binary, ...
                   get (0, "screenpixelsperinch"), ...
                   fullfile (fontdir, "FreeSans.otf"), 1);

    if (opts.debug)
      fprintf ("svgconvert command: '%s'\n", cmd);
    endif
  endif

endfunction


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?52193>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]