bugGNU Octave - Bugs: bug #52974, print to PostScript does not...

 
 

bug #52974: print to PostScript does not respect FontName property

Submitter:  Rik <rik5>
Submitted:  Thu 25 Jan 2018 06:58:54 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 13 Feb 2018 06:48:48 PM UTC, comment #3: 

Closing as a duplicate of bug #52193.

Rik <rik5>
Group administrator
Fri 26 Jan 2018 12:50:20 AM UTC, comment #2: 

Maybe I just forgot.  It is really annoying not to get what one can see on the screen in the output document.

Rik <rik5>
Group administrator
Thu 25 Jan 2018 07:35:07 PM UTC, comment #1: 

I think we had this discussion some time ago and this is when the idea to use svg instead of postscript as an intermediate format
came about. The gl2ps limitation is that it cannot embedd fonts
(i.e. does not include font description), but perhaps we could pipe its output to ghostscript.

Dmitri.

Dmitri A. Sergatskov <dasergatskov>
Thu 25 Jan 2018 06:58:54 PM UTC, original submission:  

When I set the font on a text object, it is rendered properly in the plot window.  However, when I print to a Postscript format, the font is ignored and replaced by Helvetica.  This is bad enough, but it affects many, many other output formats which are generated first as a PostScript object and then converted to their final form such as png or jpg.

Attached is a simple script to demonstrate the problem.


close all
graphics_toolkit qt
ht = text (0.5, 0.5, "Emerging, 1>2 RandD Services",
           "fontname", "arial","fontsize", 20);
print -color tstfont.eps
print -color tstfont.svg


If you look at the resulting eps file the text is tagged as belonging to the Helvetica font.  The export to svg gets it right.

This may be a problem upstream with gl2ps.  I believe I am using self-compiled version 1.4.0.


Rik <rik5>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #43081:  tst_epsfont.m added by rik5 (181B - text/x-matlab)
file #43082:  tstfont.svg added by rik5 (6KiB - image/svg+xml)
file #43083:  tstfont.eps added by rik5 (7KiB - image/x-eps)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-02-13 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed
    2018-01-25 rik5 Attached File- Added tst_epsfont.m, #43081
        Attached File- Added tstfont.svg, #43082
        Attached File- Added tstfont.eps, #43083

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code