Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding font in LaTeX #16

Open
sinhayash opened this issue Sep 15, 2019 · 2 comments
Open

Embedding font in LaTeX #16

sinhayash opened this issue Sep 15, 2019 · 2 comments

Comments

@sinhayash
Copy link

As per this link, please te what should be the encoding, family, series and shape for the font?

I am trying to use this template but unable to get the font rendered in PDF.

@sinhayash
Copy link
Author

sinhayash commented Sep 15, 2019

Using this, it works but the output is very jagged:
image

Code

% 
% Example of how to use a custom TTF font from the nimbus family.
%
% 1. Download your TTF font file. Here we use NimbusSanNovDSemBol from
% http://www.fonts101.com/fonts/view/Uncategorized/51530/NimbusSanNovDSemBol
%
% 2. Rename your TTF font file to custom.ttf.
%
% 3. Follow the directions at: http://math.stanford.edu/~jyzhao/latexfonts.php 
%
% 4. Upload custom.tfm, custom.ttf, T1-WGL4.enc, and t1custom.fd to writeLaTeX.
%
\documentclass[12pt]{article}
\usepackage[utf8x]{inputenc}

\newcommand\customfont[1]{{\usefont{T1}{custom}{m}{n} #1 }}

\title{Example: Custom Nimbus TTF Font}
\author{writeLaTeX}

\begin{document}
\maketitle

\Huge
Normal Font Text.

\customfont{
~#srg\%mpdnsu\\
!@sr\$gmpd `qswrWgem
}

\end{document}

@rajadain
Copy link
Contributor

Sorry just saw this. Thank you for your interest! I'll respond shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants