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

 
 

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

Submitted by:  Dimitris <dbab>
Submitted on:  Thu 08 May 2014 02:49:01 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: dbOpen/Closed: Closed
Release: 3.8.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

I pushed a patch that fixes this issue:

http://hg.savannah.gnu.org/hgweb/octave/rev/4e47e10d5279

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:

clf;
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:

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])
text(1.1,1.1,'\pm\Delta')

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])
text(1.1,1.1,'pmDelta')

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 File(s):
   
   
Comment:
   

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)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 14 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 13 May 2016 03:42:41 PM UTCmtmillerDependencies-=>bugs #47907 is dependent
    Wed 14 Oct 2015 09:43:58 PM UTCpantxoStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Tue 24 Feb 2015 02:13:22 PM UTCmtmillerDependencies-=>bugs #36943 is dependent
    Mon 18 Aug 2014 09:21:59 PM UTCrik5Dependencies-=>bugs #43019 is dependent
    Fri 15 Aug 2014 04:10:16 PM UTCrik5StatusNone=>Confirmed
    Fri 15 Aug 2014 04:07:41 PM UTCrik5Dependencies-=>bugs #42988 is dependent
    Fri 30 May 2014 01:06:52 PM UTCmtmillerDependencies-=>bugs #42436 is dependent
    Mon 12 May 2014 03:06:24 PM UTCrik5Dependencies-=>bugs #42340 is dependent
    Thu 08 May 2014 02:49:01 PM UTCdbabAttached 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.1-cleanup1