How can I use an external (commercial) font like DIN OT Regular (OpenType) as Standard-Font?
Code: Select all
\renewcommand{\familydefault}{\???}Code: Select all
\renewcommand{\familydefault}{\???}Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\usepackage[cm-default]{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}Code: Select all
\setmainfont[Mapping=tex-text]{DIN OT}Code: Select all
\setmainfont{/pathtofile/DINOT.otf}Code: Select all
%%This is a very basic article template.
%%There is just one section and two subsections.
\documentclass{article}
\usepackage[cm-default]{fontspec} % OpenType Fonts
\usepackage{xunicode} % OpenType Fonts
\usepackage{xltxtra} % ÓpenType Fonts
\setmainfont{/home/user/.fonts/DINOT.otf}
\begin{document}
\section{Title}
\subsection{Subtitle}
Plain text.
\subsection{Another subtitle}
More plain text.
\end{document}Code: Select all
mktextfm /home/user/.fonts/DINOT.otf/B
mktextfm /home/user/.fonts/DINOT
mktextfm /home/user/.fonts/DINOT.otf/I
mktextfm /home/user/.fonts/DINOT
mktextfm /home/user/.fonts/DINOT.otf/BICode: Select all
fc-list | grep -i DIN
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis