Follow-up Comment #22, bug #60930 (group groff):

This is a bit out of left field but I have been working on a font management
program for groff which stores the fonts in a local directory (~/.groff/fonts)
rather than under /usr which requires root privileges. I have attached the
program and necessary files to this bug. Please can you test.

Your system needs to have the programs fontforge, fc-query and ttfdump
available. The latter two can be found in fontconfig and texlive packages (on
my system). And it needs a fairly recent git groff, definitely not 1.23. 

Installation:-

Untar the .tgz into your home directory. Which will create ~/.groff/fonts and
~/.groff/bin with three scripts in it.

Read the attached pdf for instructions on use.

Line 16 of ttffontinstall.pl should specify which command you use to run
'bleeding-edge' groff. I use a custom test-groff which does not clobber
GROFF_FONT_PATH but plays nicely with other children.

FAQ

Why are you creating custom map files for each font.

This is because relying on on postscript names to identify glyphs is becoming
increasingly fraught. Since the Adobe glyph.list has been essentially frozen
for over 20 years, but many new characters have been added to unicode and font
designers have designed glyphs for those characters and then been "creative"
with the postscript names. For example, the postscript name for U+1F603 in
NotoEmoj is "grinningFaceWithBigEyes" which is definitely not in the AGL and
another font has the postscript name for the same glyph as "u1F603". It's the
wild west out there! The custom map allows "grinningFaceWithBigEyes" to be
assigned u1F603, otherwise afmtodit would consign the glyph to the "---" dump
where it could only be accessed by \N'nnn', and anyone using \[u1F603] would
get the character not found message. I think my favourite custom map entry for
NotoEmoji is:-

smilingCatFaceWithWrySmile u1F63C

Is it finished yet?

I'm probably going to add --papersize to add a validated value to DESC. Toying
with the idea of --import to import the fonts in the groff site font and
refreshing with a custom.map (to improve the glyph coverage).

Have fun!!

Cheers 

Deri




(file #57643, file #57644, file #57645, file #57646)

    _______________________________________________________

Additional Item Attachment:

Name: ttffontinstall.pl              Size: 18KiB
    <https://file.savannah.gnu.org/file/ttffontinstall.pl?file_id=57643>

Name: ttffontinstall.1               Size: 24KiB
    <https://file.savannah.gnu.org/file/ttffontinstall.1?file_id=57644>

Name: ttffontinstall.pdf             Size: 147KiB
    <https://file.savannah.gnu.org/file/ttffontinstall.pdf?file_id=57645>

Name: test-groff                     Size: 2KiB
    <https://file.savannah.gnu.org/file/test-groff?file_id=57646>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-53eaee4fad95e5ff698d2e397d03b1be9c5c969b.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60930>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to