groff
[Top][All Lists]
Advanced

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

Re: Using emoji with PDF device


From: Deri
Subject: Re: Using emoji with PDF device
Date: Thu, 14 Jul 2022 00:28:37 +0100

On Wednesday, 13 July 2022 22:09:53 BST Andrea D'Amore wrote:
> Hello,
> while trying to use emoji characters 🏠📱📧🌐 in a ms macro file and
> then compiling with
> 
>     groff -Tpdf -k -ms -dpaper=a4 -P-pa4 file.ms > file.pdf
> 
> I got
> 
>     troff: file.ms:66: warning: can't find special character 'u1F3E0'
>     troff: file.ms:73: warning: can't find special character 'u1F4F1'
>     troff: file.ms:75: warning: can't find special character 'u1F4E7'
>     troff: file.ms:77: warning: can't find special character 'u1F310'
> 
> 
> Is this due to the font families available to my *roff installation?
> 
> If so is there a particular font (that I see I can install with mom's
> install-font.sh) suited for my goal?
> 
> 
> As side question, what is the proper way to list available families and
> fonts?
> 
> I ended up listing `/usr/share/groff/1.22.4/font/devpdf` then reading
> "Fullname" comment in the short named files (à-la-roff), but it wasn't
> very handy.
> 
> 
> Bye

Hi Andrea,

This worked for me:-

Install the files EMOJI and NotoEmoji.pfb into /usr/share/groff/1.22.4/font/
devpdf directory. In the same directory edit the file called download and add 
this line:-

       NotoEmoji       NotoEmoji.pfb

(Note the space at the front and between should be tab characters).

Then, when you want to use emojis, add this line once in your ms file (before 
you use them):-

.special EMOJI

As regards what fonts are available as standard for gropdf they are listed on 
page 2 of the pdf version of the man page, you can see a version here:-

http://chuzzlewit.co.uk/WebManPDF.pl/man:/1/gropdf

Cheers

Deri

Attachment: NotoEmoji.pfb
Description: application/font-type1

Attachment: EMOJI
Description: Text document

Attachment: d.trf
Description: Text document

Attachment: test.pdf
Description: Adobe PDF document


reply via email to

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