## Changing fonts!

The official TeXShop Support Forum.

### Changing fonts!

Hello All,

A co-worker made a document class for our organization, and it uses 'Impact' font. I have the font, but it doesn't work in TexShop. When I typeset, there is an error saying it cannot find the font. Can I re-set the font to Impact when I typeset my document? Any other suggestions??

Thanks!
lollygag

Posts: 6
Joined: Mon Sep 27, 2010 2:22 pm

### Re: Changing fonts!

Howdy,

Is the Impact font actually available or is it proprietary? Do they actually have it working on their system? Is it a type1 font, a truetype font or an opentype font? What processing is the person using (pdflatex, xelatex, latex)?

I see the Impact ttf font as a system font so I assume it is supposed to use xelatex. Could you possibly send me the class file so I can see how it is using the font?

By the way... what is the font being used for? I hope it isn't for regular text since it is a very bold sans serif font.
Good Luck,
Herb Schulz
Herbert Schulz

Posts: 1489
Joined: Thu May 12, 2005 2:31 pm

### Re: Changing fonts!

My co-worker had to do a lot of work to get the truetype fonts installed. They are called msttcorefonts, not proprietary anymore. I am using TexShop as a frontend on my mac, and it is processing Pdftex.

I cannot send you the class file, as it is a government, "Official Use Only" document, but below are the lines that specify the font:
Code: Select all
\DeclareTextFontCommand{\textimpact}{\fontencoding{T1}\fontfamily{impact}\hyphenchar\font=-1\selectfont}

It is for a title page:
Code: Select all
 \begin{textblock}{6}(0.5,0.5)    {\textimpact{\fontsize{14}{\baselineskip}\selectfont\snsreportnumber}}    \end{textblock}

Thanks for the help!
lollygag

Posts: 6
Joined: Mon Sep 27, 2010 2:22 pm

### Re: Changing fonts!

Howdy,

How and where is the font installed? What procedure was used to install the font? is there a map file? I feel as though I need much more information to be of any help.

Also, this really isn't a TeXShop issue but rather one with the underlying TeX distribution. Besides here you might want to join the Mac OS X TeX list where there are lots of very helpful folks (and I'm there too). See the message near the top of this forum for more information.
Good Luck,
Herb Schulz
Herbert Schulz

Posts: 1489
Joined: Thu May 12, 2005 2:31 pm

### Re: Changing fonts!

It was my understanding that the font was already a part of OS X. In other applications, it is clearly listed as a font option. I just don't know how to get TexShop (or pdftex) to locate it. I am a complete newbie in the world of TeX, so please forgive my ignorance! For example, what is a map file!?
lollygag

Posts: 6
Joined: Mon Sep 27, 2010 2:22 pm

### Re: Changing fonts!

Howdy,

Normally you must use special fonts set up to be used with the TeX Distribution. It is possible to use System Fonts but then you need to be compiling with xelatex and the font loading commands are quite different from what you showed in your message (that's why I asked to see that information). Can you get in touch with the person who wrote the document class you are using and get some information from him? Is this really using LaTeX commands? What did the calls based on another class?
Good Luck,
Herb Schulz
Herbert Schulz

Posts: 1489
Joined: Thu May 12, 2005 2:31 pm

### Re: Changing fonts!

I have scoured the net for the font files for Tex, and to no avail.

Is there not a command I could put in my document (which uses this template file) that would override the font selections he has made in the template?
lollygag

Posts: 6
Joined: Mon Sep 27, 2010 2:22 pm

### Re: Changing fonts!

Howdy,

Without actually seeing more details about the definition for the command in the class file I'm not sure what that command is doing.
Good Luck,
Herb Schulz
Herbert Schulz

Posts: 1489
Joined: Thu May 12, 2005 2:31 pm

### Re: Changing fonts!

Herb,

I spoke to the creator of the class file. He said it is fine to release it. I edited out all of the juicy stuff. But you will not have the sidebar image. I hope that is not too much of an issue. Thanks for your help!

\typeout{Requires packages: graphicx, times, fancyheadings, lastpage, caption,}
\typeout{ hyperref, thumbpdf.}
\typeout{Created by ####, Some Lab, some email address}
\usepackage{times}
\usepackage{fancyhdr}
\usepackage{cite}
\usepackage{scrtime}
\usepackage[pdftex,pdfpagelabels]{attachfile}
\usepackage[pdftex,pdfpagelabels]{hyperref}
\usepackage{subfigure}
\usepackage[pdftex]{graphicx}
\usepackage{type1cm}
\usepackage{indentfirst}
\usepackage{dcolumn}
\usepackage{ragged2e}
\usepackage{lastpage}
\usepackage[absolute,overlay]{textpos}
\topmargin -1.50cm
\textheight 9.00in
\oddsidemargin 0.25cm
\evensidemargin 0.25cm
\textwidth 6.50in
\footskip 1.00cm

\DeclareTextFontCommand{\textimpact}{\fontencoding{T1}\fontfamily{impact}\hyphenchar\font=-1\selectfont}

\def\section{\@startsection {section}{1}{\z@}{1.6ex}{1.5ex}{\centering\normalsize\bf\MakeUppercase}}
\def\subsection{\@startsection{subsection}{2}{\z@}{1.8ex}{0.5ex}{\normalsize\bf\MakeUppercase}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{1.8ex}{0.5ex}{\normalsize\bf}}
\def\thesection {\arabic{section}.}
\def\thesubsection {\thesection.\arabic{subsection}}
\def\thesubsubsection {\thesubsection.\arabic{subsubsection}}

\newcolumntype{d}[1]{D{.}{.}{#1}}
\setlength{\TPHorizModule}{1in}
\setlength{\TPVertModule}{1in}

\makeatletter
\renewcommand{\maketitle}{
\begin{titlepage}
\begin{textblock}{6}(0.5,0.5)
{\textimpact{\fontsize{14}{\baselineskip}\selectfont\snsreportnumber}}
\end{textblock}
\begin{textblock}{6}(0.5,2)
\parbox{5.5in}{\hyphenpenalty=10000\textimpact{\RaggedRight\fontsize{32}{\baselineskip}\selectfont\@title}}
\end{textblock}
\begin{textblock}{6}(0.5,10.25)
{\textimpact{\fontsize{14}{\baselineskip}\selectfont\shortdate}}
\end{textblock}
\makebox[0mm]{
\raisebox{-9.20in}[0in][0in]{
\hspace*{11.in}\resizebox{!}{10.25in}{\includegraphics{sns_sidebar}}
}}\ignorespaces
\newpage
\thispagestyle{empty}\hyphenpenalty=50
\begin{center}
\vspace*{3in}
\framebox[4in][c]{\parbox{3.75in}{\fontsize{8}{\baselineskip}\selectfont
This report was prepared as an account of work sponsored by an agency
of the United States government. Neither the United States government
nor any agency thereof, nor any of their employees, makes any
warranty, express or implied, or assumes any legal liability or
responsibility for the accuracy, completeness, or usefulness of any
information, apparatus, product, or process disclosed, or represents
that its use would not infringe privately owned rights. Reference
herein to any specific commercial product, process, or service by
necessarily constitute or imply its endorsement, recommendation, or
favoring by the United States government or any agency thereof. The
views and opinions of authors expressed herein do not necessarily
state or reflect those of the United States government or any agency
thereof.}}
\end{center}
\newpage
\thispagestyle{empty}
\begin{center}
\vspace*{0.5in}
\textbf{\@title} \\
\vspace*{0.25in}
\@author \\
\vspace*{1.25in}
Date Published: \@date \\
\vspace*{4.5in}
Prepared by Some Laboratory \\
for \\
A Contractor, LLC \\
under contract ######\\
for the\\
A Govt Organization
\end{center}
\end{titlepage}
}
\pagestyle{fancy}
\begin{tabular*}{\textwidth}{|@{\extracolsep{\fill}\hspace{1em}}l|l|r|}\hline
\multicolumn{2}{|@{\extracolsep{\fill}\hspace{1em}}l|}{\shorttitle} &
Page~\thepage~of~\pageref{LastPage}\\ \hline
\snsreportnumber&
Author: \firstauthor &
Reviewer: \reviewer \\ \hline
\end{tabular*}
}
\lfoot{}
\cfoot{}
\rfoot{}
\makeatother
lollygag

Posts: 6
Joined: Mon Sep 27, 2010 2:22 pm

### Re: Changing fonts!

Howdy,

Try to replace the lines

\DeclareTextFontCommand{\textimpact}{\fontencoding{T1}\fontfamily{impact}\hyphenchar\font=-1\selectfont}

by

\DeclareTextFontCommand{\textimpact}{\fontencoding{T1}\fontfamily{phv}\fontseries{b}\hyphenchar\font=-1\selectfont}

which should use Helvetica Bold for the font.
Good Luck,
Herb Schulz
Herbert Schulz

Posts: 1489
Joined: Thu May 12, 2005 2:31 pm

Next