bugGNU roff - Bugs: bug #59933, Curly brackets displayed correctly...

 
 

bug #59933: Curly brackets displayed correctly in ps, but not in pdf

Submitter:  None
Submitted:  Sat 23 Jan 2021 07:37:36 PM UTC
   
 
Category:  Font devpdf Severity:  3 - Normal
Item Group:  Incorrect behaviour Status:  Need Info
Privacy:  Public Assigned to:  deri
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 30 Dec 2023 01:34:59 AM UTC, comment #6: 

Oliver, have you been able to confirm Deri's hypothesis that the problem you were experiencing here was with the PDF viewer?

Dave <barx>
Group Member
Fri 30 Jun 2023 12:12:59 AM UTC, comment #5: 

Further discussion took place off-ticket on the bug-groff email list; see http://lists.gnu.org/r/bug-groff/2022-06/msg00002.html and other messages linked in the thread.  (Deri quoted one of them in comment #4.)

Dave <barx>
Group Member
Wed 01 Jun 2022 05:21:29 PM UTC, comment #4: 

On Wednesday, 1 June 2022 13:25:51 BST Oliver wrote:

> Hi Branden,
>
> thank you for the update!
>
> I checked, there is no directory type1/ under /usr/share/fonts.
>
> Then, I did a "locate a0100" and found the fonts in
> /usr/share/X11/fonts/urw-fonts/.
>
> Groff will probably not have these in the standard search path.
>
> I'll experiment with setting a symbolic link from /usr/share/fonts and
> let you know tonight.
>
> Best regards,
>
> Oliver.


The problem is not that groff can't find the fonts since we can view the ESB.pdf with the braces fine. Since the fonts are not embedded in the pdf, because the fonts used are included in the pdf base fonts, the problem is with the actual pdf viewer.

In comment #1 I suggested producing the pdf with the fonts embedded, but I have not heard whether that was successful. Just in case I have attached a pdf with the relevent fonts embedded. It would be interesting to find out whether the viewer will show the braces correctly.


(file #53264)

Deri James <deri>
Group Member
Wed 01 Jun 2022 12:22:32 AM UTC, comment #3: 

I, too, cannot reproduce this problem with groff 1.22.4 or Git HEAD.

Oliver, do you have the URW fonts installed?  On my Debian-based system, these are maintained in a package called 'gsfonts'.

On the file system, they are in files with names like this.


/usr/share/fonts/type1/gsfonts/a010013l.afm
/usr/share/fonts/type1/gsfonts/a010013l.pfb
/usr/share/fonts/type1/gsfonts/a010013l.pfm
/usr/share/fonts/type1/gsfonts/a010015l.afm
/usr/share/fonts/type1/gsfonts/a010015l.pfb
/usr/share/fonts/type1/gsfonts/a010015l.pfm


G. Branden Robinson <gbranden>
Group administrator
Sat 13 Feb 2021 09:58:22 PM UTC, comment #2: 
Dave <barx>
Group Member
Sat 23 Jan 2021 09:16:48 PM UTC, comment #1: 

When I view the file ESB.pdf you provided it looks like the ESB.ps file. I notice that the pdf was created by ghostscript and the symbol font is not embedded, which relies on the pdf viewer being able to locate the appropriate font on your system when it renders the pdf to the screen.

There are a couple of things you could try:-

Using ghostscript:-

ps2pdf -dEmbedAllFonts=true -dPDFSETTINGS=/prepress ESB.ps

Or try:-

groff -Tpdf -te -P-e ESB.tbl > ESB-g.pdf

Which will create a pdf with all the fonts embedded.

Deri James <deri>
Group Member
Sat 23 Jan 2021 07:37:36 PM UTC, original submission:  

To whom it may concern:

The attached file 1979_02940002.png shows what I want to reproduce with ESB.tbl.

I tried to build a stack with mathematical symbols to achieve a large vertical curly bracket.

In ESB.ps, the curly brackets are displayed correctly, albeit somewhat meagre in comparison to the original (doesn't bother me as long as it works), in the ESB.pdf file I get boxes or nothing, depending on viewer.

Please ignore the improper vertical alignment of the brackets, this is not part of the problem.

My groff installation is an out-of-the-box version 1.22.3 shipped with Fedora (31 or 32, I forgot).

Thank you very much,
Oliver.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #53264:  ESB-g.pdf.pdf added by deri (15KiB - application/pdf)
file #50770:  ESB.ps added by None (7KiB - application/postscript)
file #50771:  ESB.pdf added by None (13KiB - application/pdf)
file #50772:  1979_02940002.png added by None (48KiB - image/png)
file #50773:  ESB.tbl added by None (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by gbranden (original reporter)
  • -email is unavailable- added by barx (Posted a comment)
  • -email is unavailable- added by deri (Posted a comment)
  •  

    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 logged-in users can vote.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-06-01 deri Attached File- Added ESB-g.pdf.pdf, #53264
    2022-06-01 gbranden StatusUnreproducible Need Info
    2022-06-01 gbranden Carbon-Copy- Added -email is unavailable-
    2021-01-23 deri StatusNone Unreproducible
        Assigned toNone deri
    2021-01-23 None Attached File- Added ESB.ps, #50770
        Attached File- Added ESB.pdf, #50771
        Attached File- Added 1979_02940002.png, #50772
        Attached File- Added ESB.tbl, #50773

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code