\section{font preparation} one of the major lack of \LaTeX regarded from most graphic designer's point is the easy integration of custom fonts. So here the short tutorial for the integration of custom fonts into forkabe. \subsection{get a free font} download a free font, for a example at font squirrel. \medskip \graphic{\fpath/i/non-free/p/font_preparation/2010-01-28--1264674428_1024x768_scrot.png} {0}{0}{989}{746}{.5\linewidth} {0pt} example font for now is Inconsolata by Raph Levien. \medskip \graphic{\fpath/i/non-free/p/font_preparation/2010-01-28--1264674831_1024x768_scrot.png} {0}{0}{989}{746}{.5\linewidth} {0pt} \graphic{\fpath/i/non-free/p/font_preparation/2010-01-28--1264674867_1024x768_scrot.png} {0}{0}{989}{746}{.5\linewidth} {0pt} \subsection{prepare the files} make a directory in \codeinline{}{utils/latex/fonts} \codeline{language=Bash} {mkdir Inconsolata} % FULLPAGE TEST %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % open with fontforge % \lstinline{fontforge Inconsolata.otf} % \medskip % \graphic{\fpath/i/non-free/p/font_preparation/2010-01-28--1264675321_1024x768_scrot.png} % {0}{0}{989}{746}{\linewidth} % {0pt} \fullpage{\fpath/i/non-free/p/font_preparation/2010-01-28--1264675321_1024x768_scrot.png} {1.0} % SCALE {80} % VERTICAL OFFSET {40} % HORIZONTAL OFFSET { % X POSITION Y POSITION WIDTH \flexcommentbox{-.1\textwidth}{-.4\textheight}{.75\textwidth} {\Huge \begin{flushleft} open with fontforge \end{flushleft} \codeline{basicstyle=\Huge\ttfamily} {fontforge Inconsolata.otf} } } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FULLPAGE TEST %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \medskip % \graphic{\fpath/i/non-free/p/font_preparation/2010-01-28--1264675408_1024x768_scrot.png} % {0}{0}{989}{746}{\linewidth} % {0pt} % export ps type 1 font \fullpage{\fpath/i/non-free/p/font_preparation/2010-01-28--1264675408_1024x768_scrot.png} {1.5} % SCALE {80} % VERTICAL OFFSET {120} % HORIZONTAL OFFSET { % X POSITION Y POSITION WIDTH \flexcommentbox{-.1\textwidth}{-.36\textheight}{.75\textwidth} {\Huge \begin{flushleft} export ps type 1 font \end{flushleft} } } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% you get two files: \codeline{}{Inconsolata.afm Inconsolata.pfb} you have to rename the files according to the Karl Berry Scheme:\footnote{% Who is Karl Berry? } \index{Berry, Karl} the name of a font is composed as follows: \begin{itemize} \item first letter indicates the font foundry \item second and third letter condense the name of the font \item fourth and fifth letter indicate the shape/variant/width of the font: \begin{itemize} \item r = regular \item ri = regular italic \item b = bold \item bi = bold italic \end{itemize} \item next two letters indicate the font encoding e.g. 8a for Adobe Standard encoding \index{Adobe} \end{itemize} \subsubsection{EXAMPLE} \begin{itemize} \item foundryname/author is levien \item fontname is Inconsolata \item shape/variant/width is regular \end{itemize} \codeline{}{mv Inconsolata.afm linr8a.afm} \codeline{}{mv Inconsolata.pfm linr8a.pfb} % move up a directory % \codeline{}{cd ..} execute fonts4latex.sh as following % ./fonts4latex.sh [KARLBERRYSCHEME] [FONTNAME] [FOUNDRYNAME] [LICENSE] % BUGS: % - tex input may have errors because of shell escape characters % - mkdir -p $TEXMF/fonts/{afm,tfm,type1,vf}/$FOUNDRYNAME/$FONTNAME stopped working \codeline{}{./fonts4latex.sh lin inconsolata levien SIL_OpenFontLicense_1.1.txt} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \medskip % \graphic{\fpath/i/non-free/p/font_preparation/2010-01-28--1264675455_1024x768_scrot.png} % {0}{0}{989}{746}{\linewidth} % {0pt} % export ps type 1 font \fullpage{\fpath/i/non-free/p/font_preparation/2010-01-28--1264675455_1024x768_scrot.png} {1.2} % SCALE {80} % VERTICAL OFFSET {-120} % HORIZONTAL OFFSET { % X POSITION Y POSITION WIDTH \flexcommentbox{-.1\textwidth}{-.36\textheight}{.75\textwidth} {\Huge \begin{flushleft} export ps type 1 font \end{flushleft} } } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \clearpage