How can I extract embedded fonts from a PDF as valid font files?

后端 未结 8 1125
独厮守ぢ
独厮守ぢ 2020-11-28 17:37

I\'m aware of the pdftk.exe utility that can indicate which fonts are used by a PDF, and wether they are embedded or not.

Now the problem: given I had P

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 17:43

    This is a followup to the font-forge section of @Kurt Pfeifle's answer, specific to Red Hat (and possibly other Linux distros).

    1. After opening the PDF and selecting the font you want, you will want to select "File -> Generate Fonts..." option.
    2. If there are errors in the file, you can choose to ignore them or save the file and edit them. Most of the errors can be fixed automatically if you click "Fix" enough times.
    3. Click "Element -> Font Info...", and "Fontname", "Family Name" and "Name for Humans" are all set to values you like. If not, modify them and save the file somewhere. These names will determine how your font appears on the system.
    4. Select your file name and click "Save..."

    Once you have your TTF file, you can install it on your system by

    1. Copying it to folder /usr/share/fonts (as root)
    2. Running fc-cache -f /usr/share/fonts/ (as root)

提交回复
热议问题