bugGNU Octave - Bugs: bug #42320, Symbols don't show in pdf when...


bug #42320: Symbols don't show in pdf when using fltk

Submitter:  Dimitris <dbab>
Submitted:  Thu 08 May 2014 02:49:01 PM UTC
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  db Open/Closed:  * Closed
Release:  * 3.8.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Wed 14 Oct 2015 09:43:58 PM UTC, comment #4: 

I pushed a patch that fixes this issue:


Greek letters and tex symbols are now replaced by the corresponding character in the Symbol font before printing.

Closing report.

Pantxo Diribarne <pantxo>
Project Member
Mon 13 Apr 2015 09:03:19 PM UTC, comment #3: 

The poor man's workaround is to use the "Symbol" font. Obviously this won't work on-screen as "Symbol" is a pdf/postcript font and you can't mix this with other fonts:

text (0.5, 0.5, 'g', 'fontname', 'Symbol');
print tst.pdf

Pantxo Diribarne <pantxo>
Project Member
Fri 15 Aug 2014 04:10:16 PM UTC, comment #2: 

This is a known issue.  The OpenGL backend has an onscreen renderer for TeX labels, but the backend print engine gl2ps does not.

Simple code showing the problem:

text (0.5, 0.5, '\gamma');
print tst.pdf

Rik <rik5>
Project Administrator
Thu 08 May 2014 03:04:49 PM UTC, comment #1: 

Sorry there should be a backslash before pm and before Delta.That is:

plot([1 2],[1 2])

print -dpdfwrite test.pdf
print -deps test.eps
print -dpng test.png

Dimitris <dbab>
Thu 08 May 2014 02:49:01 PM UTC, original submission:  

Using symbols in fltk, like plus-minus or the greek Delta, will show on screen, but can't be saved in pdf, eps of png. To replicate:

plot([1 2],[1 2])

print -dpdfwrite test.pdf
print -deps test.eps
print -dpng test.png

Dimitris <dbab>


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

Attach Files:

Attached Files
file #31337:  screenshot.png added by dbab (14KiB - image/png)
file #31338:  test.eps added by dbab (7KiB - image/x-eps)
file #31339:  test.pdf added by dbab (3KiB - application/pdf)
file #31340:  test.png added by dbab (21KiB - image/png)


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

    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 project members can vote.





    Follow 14 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-13 mtmiller Dependencies- bugs #47907 is dependent
    2015-10-14 pantxo StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2015-02-24 mtmiller Dependencies- bugs #36943 is dependent
    2014-08-18 rik5 Dependencies- bugs #43019 is dependent
    2014-08-15 rik5 StatusNone Confirmed
    2014-08-15 rik5 Dependencies- bugs #42988 is dependent
    2014-05-30 mtmiller Dependencies- bugs #42436 is dependent
    2014-05-12 rik5 Dependencies- bugs #42340 is dependent
    2014-05-08 dbab Attached File- Added screenshot.png, #31337
        Attached File- Added test.eps, #31338
        Attached File- Added test.pdf, #31339
        Attached File- Added test.png, #31340
        Carbon-Copy- Added dbab

    Back to the top

    Powered by Savane 3.9