sebschub / FontPro

LaTeX support for Adobe's Pro opentype fonts: Minion Pro, Myriad Pro, Cronos Pro and possibly more
229 stars 42 forks source link

Installation guide for Win 10 & TeXLive 2021 #70

Open SebastianMuskalla opened 3 years ago

SebastianMuskalla commented 3 years ago

For anyone struggling to get FontPro to run with modern versions TeXLive, here is a guide how I got it to work. The guide is for Myriad Pro, but it should work for the other fonts too.

Note that the "Build" and the "Install" steps can be performed on separate machines, i.e. one can build the packages on one machine and distribute it to various other machines by just copying the files. Doing so may violate the license for Myriad Pro.

How To: Win 10 + TeXLive + Font Pro + Myriad Pro

Prerequisites

Build

  1. Clone or download FontPro from github
  2. Inside the FontPro folder, create otf folder and paste the Myriad Pro font files, e.g. MyriadPro-Bold.otf (be aware of the capitalization!)
  3. Copy the resulting folder to a non-protected location
  4. Install the lcdf-typetools package in your Linux environment (e.g. sudo apt install lcdf-typetools)
  5. Make sure that latex is a recognized command in your shell that points to the latex.exe of your windows installation. If it doesn't work, use sudo su root and create a file latex with +x permissions in /usr/local/bin/ that contains
    #!/bin/sh
    latex.exe "$@"

    (latex.exe should be in your Windows PATH)

  6. Open an ELEVATED ("Run as Administrator") Linux shell, navigate to the folder and run ./scripts/makeall MyriadPro Make sure that the log does not contain "permission denied" errors. (If it does, your shell probably wasn't elevated.)
  7. Run ./scripts/install ./build and confirm with y

You have now created the MyriadPro package for LaTeX and the corresponding data in the build folder. In order to use it, it has to be installed.

Installing

  1. Locate your textmf-local directory of your TeXLive installation, e.g. C:\texlive\texmf-local or D:\TeXLive\texmf-local
  2. Copy the three folders (doc, fonts, and tex) from the FontPro build folder to the textmf-local folder and merge them with the folders of the same name there. Do not copy the ls-R installation file.
  3. Open an ELEVATED ("Run as Administrator") Windows PowerShell or Command Prompt and navigate to your textmf-local folder, e.g. cd C:\texlive\texmf-local or cd D:\TeXLive\texmf-local
  4. Execute the command mktexlsr .
  5. Execute the command updmap-sys --enable Map=MyriadPro.map

The MyriadPro package and the required files should now be installed.