# How do I switch between Vector and Raster (bitmap) Fonts?

Q. What do you exactly need?

A. I need to compile twice one and the same document in PDFLaTeX using

• vector fonts from CM-Super package
• standard raster Computer Modern fonts

Q. Why do you need that?

A. Because CM-Super fonts are produced by auto-tracing. They are suitable for on-screen reading, but not quite for print.

Q. But then why not use AMS-BlueSky fonts or Latin Modern?

A. They either do not have Cyrillic letters, or if they have, they are of rather poor quality, and do not have optical sizes.

I have a solution - using two instances of MiKTeX Portable. One having all needed vector fonts packages, and the other with all these packages removed. Then having two PDFLaTeX profiles in the editor - on for every MiKTeX Portable instance.

But that solution is not convenient...

-

Calling the compilation of file.tex with

pdflatex "\pdfmapfile{}\input{file}"


won't read any map file and so use the pk files, possibly generating them. I don't find, however, that the CM-Super fonts aren't suitable for print.

If you need Type1 fonts other than CM, make a copy of pdftex.map, call it mypdftex.map and edit it to erase all fonts you don't want. Then put the file in the suitable search paths (the work directory is OK) and call

pdflatex "\pdfmapfile{mypdfmap.map}\input{file}"


If I compile in that way the simple file

\documentclass{standalone}
\begin{document}
abc $abc$ \emph{abc} \textbf{abc}
\end{document}


I get this

-
Thanks, but it does not compile correctly this way. Fonts do really change to bitmap. But only italic and math appear in the PDF produced. Also there are a lot of errors. –  Karl Karlsson Jun 3 '11 at 15:51
@Karl Without a minimal example it's impossible to tell. –  egreg Jun 3 '11 at 15:54
Actually I was wrong. Everything works OK. I was trying to use it with texfy (MiKTeX special driver), but it seems to work only directly with PDFLaTeX. –  Karl Karlsson Jun 3 '11 at 16:27

(Also too long for a comment):

“Suitable for on-screen reading” turns out to be a lot more complicated than I’d imagined; the “P” in “PDF” seems to be a delusion, and some company called Adobe seems unclear on the whole concept. I was stunned to find that my doctoral thesis, whose normal text looks fine in Preview on a Mac or Goodreader on the iPda, looks utterly appalling in Adobe Reader 10.0.0 or 7.1.0, with, for instance, a laughably low horizontal in the lower case e. Admittedly my setup is quite odd (XeTeX, ucharclasses, 12pt, and CMU Serif, among other things), but even a simple test case with TexLive 2010 Xetex and amsfonts in Texmaker was still appalling.

Reverting to 10pt helped substantially for Mac Adobe Reader. So does zooming and reverting to 100%. Adobe Reader 7.0.9 on Windows XP or Vista doesn’t look bad in either 10pt or 12pt. 10pt text at 100% in Okular 0.8.2 on Ubuntu is less text than a smudge; 12pt is readable but horrifying.

I think all of my tests used the supposedly high-quality BlueSky bitmaps; the simple 12pt case just used XeLaTeX with:

\documentclass[12pt]{article}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}

-

(A little bit too long for a comment):

I'd suggest to solve your underlying problem a different way: by choosing a high-quality vector fontset that includes all the character sets that you need. For example the MinionPro package supports Latin, Greek & Cyrillic and activates a matching set of mathematical symbols. Everything is optically scaled. I can't really comment on the quality of the cyrillic but it looks decent to me in the limited cases I've used it (see for example reference 23 on page 129 here).

-
Thanks. :) That's actually a valid answer. I think it's MinionPro + MnSymbol. MinionPro is actually an excellent font - both Latin & Cyrillic. It's somewhat non traditional for Cyrillic math related books, but that's not so important these days. To be honest, for me, Minion Math is somewhat superior to MnSymbol. It's web site can be found using Google, so I give some other interesting links. Minion Math — The Design of a New Math Font Family, and Math never seen. –  Karl Karlsson Jun 6 '11 at 13:56
@Karl, yes, I'm aware of Minion Math. Do you know of any good example documents using it? The only example I know is the Motion Mountain books, which are not very mathematical so they don't demonstrate the font very well. –  Lev Bishop Jun 8 '11 at 4:15
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8652916550636292, "perplexity": 3591.5095601404555}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-40/segments/1443736676381.33/warc/CC-MAIN-20151001215756-00237-ip-10-137-6-227.ec2.internal.warc.gz"}