Un’altra curiosità, sull’uso del Type1 con XeLaTeX.
Ho visto che tutte le informazioni sul font negli .otf stanno in un unico file,
mentre nei Type1 sono distinte in vari file, e ho letto in rete
(ma i messaggi sul tema erano vecchi, non so se il limite sussista ancora)
che XeLaTeX nell’uso dei Type1 non è in grado fra l’altro di gestire le legature.
In ogni caso, descrivo l’esperimento che ho fatto. Ho provato a comporre
con URW Garamond (installato con getnonfreefont) un testo:
`\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\renewcommand{\rmdefault}{ugm} % ugm
\usepackage{etoolbox}
\cspreto{rmfamily}{\fontencoding{T1}}
\setmainfont{GaramondN8}
\usepackage{garamondx}
\usepackage{lipsum}
\begin{document}
\lipsum
\end{document}`
Il nome “GaramondN8” l’ho desunto aprendo il file ugmr8a con FontForge.
Ottengo questo errore:
`kpathsea: Running mktextfm GaramondN8
/usr/local/texlive/2012/texmf/web2c/mktexnam: Could not map source abbreviation G for GaramondN8.
/usr/local/texlive/2012/texmf/web2c/mktexnam: Need to update /usr/local/texlive/2012/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input GaramondN8
This is METAFONT, Version 2.718281 (TeX Live 2012)
kpathsea: Running mktexmf GaramondN8
! I can't find file `GaramondN8'.
<*> …four; mag:=1; nonstopmode; input GaramondN8
Please type another input file name
! Emergency stop.
<*> …four; mag:=1; nonstopmode; input GaramondN8
Transcript written on mfput.log.
grep: GaramondN8.log: File o directory non esistente
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input GaramondN8' failed to make GaramondN8.tfm.
kpathsea: Appending font creation commands to missfont.log.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: “font-not-found”
!
! The font “GaramondN8” cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H
!………………………………………..
l.7 \setmainfont{GaramondN8}
? `
In ogni caso sono alle solite, nel senso che il font è installato in /usr/local/texlive/texmf-local/…
e cf-list (dando il comando “fc-list | grep garamond”, oppure “fc-list | grep urw” non mi dà quel font,
ma solo gli omonimi installati in /usr/local/texlive/2012/…
Ho visto questa discussione, ma vorrei capire come fare anche se prevedo l’obiezione:
“maperché mai dovresti ecc ecc…”
m