File: font-comparison.tex

package info (click to toggle)
freetype 2.13.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 25,384 kB
  • sloc: ansic: 153,848; cpp: 13,981; python: 5,909; sh: 4,486; xml: 1,439; makefile: 676; perl: 340; awk: 142; javascript: 82
file content (34 lines) | stat: -rw-r--r-- 709 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% font-comparison.tex
%
% written 2022 by Werner Lemberg <wl@gnu.org>


% This file contains a graphic used for the 'FreeType Glyph Conventions'
% tutorial, part 2, 'Glyph Outlines'.


% Here is one possibility to convert this LaTeX file to both PNG and SVG
% formats.
%
%   xelatex font-comparison.tex
%
%   pdftoppm -singlefile -png -r 120 font-comparison.pdf font-comparison
%   optipng font-comparison.png
%
%   pdf2svg font-comparison.pdf font-comparison.svg

\documentclass[border=3mm]{standalone}

\usepackage{fontspec}


\begin{document}

\setmainfont{Times New Roman}
``example (Times New Roman)'',
\setmainfont{Arial}
``example (Arial)'',
\setmainfont{Courier}
``example (Courier)''

\end{document}