I want to use following font in my current document with pdflatex and lualatex
https://ctan.org/tex-archive/fonts/cryst
Following MWE compiles successfully
\documentclass{article}
\usepackage{tikz}
\DeclareFontFamily{U}{cry}{\hyphenchar\font=-1}
\DeclareFontShape{U}{cry}{m}{n}{ <-> cryst}{}
\newcommand{\cry}[1]{{\usefont{U}{cry}{m}{n} \symbol{#1}}}
\begin{document}
\begin{tikzpicture}
\node (a) at (0,0) {\cry{2}};
\end{tikzpicture}
\end{document}
However, right now I get only a bitmap font
Log file contains only a single line to a cryst file:
/Users/hotschke/Library/texlive/2018/texmf-var/fonts/pk
/ljfour/public/cryst/cryst.600pk
And most importantly my printer prints only following error
ERROR: limitcheck
OFFENDING COMMAND: imagemask
STACK:
(r)
(Sys/Start)
(Sys/Start)
I have MacTeX 2018 on macOS 10.14 installed.
As far as I understand the question load custom font in miktex 2.9 concerning using 'cryst' on MikTeX, the description given in the README of the font 'cryst' is outdated.
Can one help me to configure it properly in a texmf local directory?
Afaik, the texmf local base directory on macOS by default is
$HOME/Library/texmf
/usr/local/texlive/texmf-local/
See here for details why you should not install fonts into your home folder. Other files such as packages are probably be fine (http://tug.org/mactex/faq/faq.html#atqm05down).
General description of how to install a font is given here:
https://www.tug.org/fonts/fontinstall.html
The site https://www.tug.org/fonts/fontinstall-personal.html also warns twice about installing fonts into a personal folder.
I have followed the README the first four steps copying the relevant files into the texmf local tree:
❯ mkdir -p /usr/local/texlive/texmf-local/{tfm,source,afm,type1}/cryst1
❯ cp /usr/local/texlive/2018/texmf-dist/fonts/tfm/public/cryst/cryst.tfm /usr/local/texlive/texmf-local/fonts/tfm/cryst1
❯ cp /usr/local/texlive/2018/texmf-dist/fonts/source/public/cryst/cryst.mf /usr/local/texlive/texmf-local/fonts/source/cryst1
❯ cp /usr/local/texlive/2018/texmf-dist/fonts/afm/public/cryst/cryst.afm /usr/local/texlive/texmf-local/fonts/afm/cryst1
❯ cp /usr/local/texlive/2018/texmf-dist/fonts/type1/public/cryst/cryst.pfb /usr/local/texlive/texmf-local/fonts/type1/cryst1
/usr/local/texlive/texmf-local
❯ tree -P '*cryst*' --prune
.
└── fonts
├── afm
│ └── cryst1
│ └── cryst.afm
├── source
│ └── cryst1
│ └── cryst.mf
├── tfm
│ └── cryst1
│ └── cryst.tfm
└── type1
└── cryst1
└── cryst.pfb
9 directories, 4 files
Now, I am not sure how to update the files
config.ps
(for dvips) withp +cryst1.map
pdftex.cfg
for pdftex withmap +cryst1.map
- and what I have to do for lualatex.
UPDATE Extract of the README (without the 'trivial' steps of copying files):
Tell dvips (for PostScript output) where to find the files.
To this end, insert the following line into the file config.ps:
p +cryst1.map
(config.ps is in a directory like \texmf\dvips\config
or /usr/share/texmf/dvips/config).
If you use pdfTeX, insert
map +cryst1.map
to your pdftex.cfg file
(in \texmf\pdftex\config or /usr/share/texmf/pdftex/config).
Create a new file cryst1.map in a new subdirectory of the directory
of map files (e.g. \texmf\dvips\cryst1 or /usr/share/texmf/dvips/cryst1).
The file cryst1.map consists of one line:
cryst cryst1 <cryst.pfb
Finally, tell TeX which new files and directories exist. This is done
by a command like
initexmf -u for MikTeX under Windows
or run texhash under root in the shell of Linux RedHat.
updmap-user
.README
says I have to create it myself "Create a new file cryst1.map in a new subdirectory of the directory of map files. The file cryst1.map consists of one line:cryst cryst1 <cryst.pfb
".