0

All I have done is write a code like this:

\documentclass{article}
\usepackage{comicsans}
\usepackage{mathtools}

\begin{document} Hello World! \end{document}

The output consists of empty black-bordered rectangles with the dimension of the letters. I do not know how to fix it. I have already installed the comicsans package form MiKTeX console.

Werner
  • 603,163

2 Answers2

2

In XeLaTeX or LuaLaTeX, you can use the TrueType font directly:

 \usepackage{fontspec}
 \setmainfont{Comic Sans}

If you also want to use it for math (and it has a surprisingly large repertoire of math symbols), you can use mathastext, unicode-math or mathspec.

Davislor
  • 44,045
2

The package comicsans is rather old and it not longer works with the version of the font provided by a current windows.

The situation is quite similar to verdana and the other winfonts (see Verdana font not working).

To get it working again you would have to create a new encoding file or get the author to do it along the lines in my answer to the other question https://tex.stackexchange.com/a/339269/2388

The alternative is to use xelatex or lualatex as suggested by Davislor.

Ulrike Fischer
  • 327,261