<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>∃xistential Type &#187; typography</title>
	<atom:link href="http://existentialtype.net/category/typography/feed/" rel="self" type="application/rss+xml" />
	<link>http://existentialtype.net</link>
	<description>For People Who Like Type and Types</description>
	<lastBuildDate>Sat, 12 May 2012 16:35:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Following up on quality fonts and meta-fonts</title>
		<link>http://existentialtype.net/2009/08/24/following-up-on-quality-fonts-and-meta-fonts/</link>
		<comments>http://existentialtype.net/2009/08/24/following-up-on-quality-fonts-and-meta-fonts/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 18:39:50 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[fonts]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[antykwa półtawskiego]]></category>
		<category><![CDATA[antykwa toruńska]]></category>
		<category><![CDATA[metatype1]]></category>
		<category><![CDATA[OCEANIA]]></category>
		<category><![CDATA[tex gyre]]></category>
		<category><![CDATA[type 1]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=333</guid>
		<description><![CDATA[In response to my post on quality fonts, mbana provided a pointer to a Typophile discussion on the Tex Gyre fonts. In particular, Thomas Phinney described their quality as "wildly variable". I suppose at the time I was using "quality" to more describe whether the fonts provided all the features I would expect to need, rather [...]]]></description>
			<content:encoded><![CDATA[<p>In response to my post on <a href="http://existentialtype.net/2009/04/12/quality-fonts/">quality fonts</a>, <a href="http://existentialtype.net/2009/04/12/quality-fonts/#comment-32696">mbana</a> provided a pointer to a <a href="http://typophile.com/node/41012">Typophile discussion on the Tex Gyre fonts</a>.  In particular, Thomas Phinney described their quality as "wildly variable".  I suppose at the time I was using "quality" to more describe whether the fonts provided all the features I would expect to need, rather than only aesthetic quality.  I have to admit when I did skim the specimens that they didn't look too bad to me. He did say that the glyphs based on the original URW designs were quite good, while the Greek and Cyrillic "range from mediocre to poor to largely useless".  Phinney most certainly has more experience with Cyrillic and type design than me, and arguably he probably just has a much better eye than me.</p>
<p><a href="http://existentialtype.net/2009/04/12/quality-fonts/#comment-32619">Leon</a> recommended <a href="http://junicode.sourceforge.net/">Junicode</a>, which provides the most important features I discussed.  I do think its stems are a bit thinner than I prefer, but it seems very well done.</p>
<p>In my discussion of <a href="http://existentialtype.net/2009/04/17/metatype1-and-meta-fonts/">METATYPE1 and meta-fonts</a>, <a href="http://existentialtype.net/2009/04/17/metatype1-and-meta-fonts/#comment-31737">Till</a> pointed out the existence of the meta-font <a href="http://www.ntg.nl/maps/25/13.pdf">Antykwa Półtawskiego</a>.  At the time I told him that I thought he was misinformed because <a href="http://nowacki.strefa.pl/torunska-e.html">Antykwa Toruńska</a> seemed to have been created by tracing scanned specimens.  A few days ago, <a href="http://titan.plasma.xg8.de:8080/~rtc/">Peter Backes</a> pointed out this rather egregious error in reading comprehension on my part. Currently, only the generated <a href="http://tug.ctan.org/tex-archive/fonts/psfonts/polish/antp/">Type 1 font files</a> are available for Antykwa Półtawskiego.  However, it sounds like it was prepared using a rather early version of METATYPE1 and therefore the sources could possibly be incompatible with the newer versions of METATYPE1.</p>
<p>Peter also noted that he has also created a font with METATYPE1 called <a href="http://titan.plasma.xg8.de:8080/~rtc/ocd108p0.pdf">OCEANIA</a>. It is perhaps not as "meta" as he thinks would be ideal, but during the time I've spent working with METAFONT and METATYPE1, I've definitely found that it is often quite difficult to come up with a reasonable declarative specification of a glyph.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2009/08/24/following-up-on-quality-fonts-and-meta-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding symbols graphically</title>
		<link>http://existentialtype.net/2009/08/10/finding-symbols-graphically/</link>
		<comments>http://existentialtype.net/2009/08/10/finding-symbols-graphically/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 15:22:01 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[fonts]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[detexify]]></category>
		<category><![CDATA[handwriting recognition]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[symbols]]></category>
		<category><![CDATA[tex]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=329</guid>
		<description><![CDATA[Jeff pointed me to these extremely cool and useful web application: Detexify2.  At least a few of you readers have spent time skimming The Comprehensive LaTeX Symbol List looking for the incantation required for a specific symbol. With Detexify2 you can just scribble something that roughly looks the symbol and it will tell you the [...]]]></description>
			<content:encoded><![CDATA[<p>Jeff pointed me to these extremely cool and useful web application: <a href="http://detexify.kirelabs.org/classify.html">Detexify<sup>2</sup></a>.  At least a few of you readers have spent time skimming <a href="http://www.ctan.org/tex-archive/info/symbols/comprehensive/">The Comprehensive LaTeX Symbol List</a> looking for the incantation required for a specific symbol.  With Detexify<sup>2</sup> you can just scribble something that roughly looks the symbol and it will tell you the name and, if necessary, the LaTeX package that provides it.</p>
<p>The only problem is that it lets users help train the recognizer.  This can also be a good thing, but I can imagine a few malicious users (or perhaps just people with very bad drawing skills) ruining it for everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2009/08/10/finding-symbols-graphically/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Typographic Style for Computer Scientists</title>
		<link>http://existentialtype.net/2009/08/09/typographic-style-for-computer-scientists/</link>
		<comments>http://existentialtype.net/2009/08/09/typographic-style-for-computer-scientists/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 11:17:30 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[papers]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=327</guid>
		<description><![CDATA[Typographic Style for Computer Scientists is a short article intended to bring computer scientists up to speed on typographical issues. I started writing it several years ago, and then set it aside for other projects. Recently, I decided rather than wait for it to be “complete” and perfect that I should polish it up a [...]]]></description>
			<content:encoded><![CDATA[<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding: 0px;"><a href="http://free-the-mallocs.com/_media/typographic-style.pdf">Typographic Style for Computer Scientists</a> is a short article intended to bring computer scientists up to speed on typographical issues. I started writing it several years ago, and then set it aside for other projects. Recently, I decided rather than wait for it to be “complete” and perfect that I should polish it up a little and see if people could benefit from it.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding: 0px;">It is probably far from comprehensive, but hopefully some people will find it useful. I had been thinking of perhaps adding some material specifically on inference rules and judgments, but I am not sure what else it might make sense to include.</p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding: 0px;">If you find mistakes please let me know. If you disagree on some of what I have said, let me know and perhaps I can address your concerns.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2009/08/09/typographic-style-for-computer-scientists/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Testing mftrace</title>
		<link>http://existentialtype.net/2009/04/18/testing-mftrace/</link>
		<comments>http://existentialtype.net/2009/04/18/testing-mftrace/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 20:25:31 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[fonts]]></category>
		<category><![CDATA[graphic design]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[ams euler]]></category>
		<category><![CDATA[computer modern]]></category>
		<category><![CDATA[fontforge]]></category>
		<category><![CDATA[metafont]]></category>
		<category><![CDATA[metatype1]]></category>
		<category><![CDATA[mftrace]]></category>
		<category><![CDATA[tracing]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=306</guid>
		<description><![CDATA[I am not entirely sure how fair of a comparison I am making, but I am open to suggestions on how to better compare the hypothetical output of a font designed using METATYPE1, where a Type 1 font would be directly generated, versus a font designed using METAFONT, where a Type 1 font is generated [...]]]></description>
			<content:encoded><![CDATA[<p>I am not entirely sure how fair of a comparison I am making, but I am open to suggestions on how to better compare the hypothetical output of a font designed using <a href="http://www.gust.org.pl/projects/e-foundry/metatype1">METATYPE1</a>, where a <a href="http://en.wikipedia.org/wiki/PostScript_fonts#Type_1">Type 1</a> font would be directly generated, versus a font designed using <a href="http://en.wikipedia.org/wiki/METAFONT">METAFONT</a>, where a Type 1 font is generated using <a href="http://lilypond.org/mftrace/">mftrace</a>.</p>
<p>For my experiment, I chose to compare glyphs from the Type 1 version of <a href="http://en.wikipedia.org/wiki/Computer_Modern">Computer Modern</a> maintained by the <a href="http://www.ams.org/">American Mathematical Society</a>, which was presumable crafted by manually tracing the bitmap version and optimizing various aspects by hand, with glyphs generated by mftrace on 3000DPI bitmaps generated from the METAFONT source.  I could imagine that it might be fairer to compare the result of using nearly identical METATYPE1 and METAFONT source to generate the Type 1 glyphs, but then I would be biasing the design process towards the limitations of METATYPE1.  I had considered using the METAFONT source for <a href="http://en.wikipedia.org/wiki/AMS_Euler">AMS Euler</a>, because the source is simply the outline and would be easy to convert to METATYPE1.</p>
<p>I also decided to use glyphs with plenty of curves for the test, as I figure that tracing software can probably do a pretty good job with straight lines.</p>
<p>In any event, I will leave it to you to decide whether you can distinguish which is version is which below.  The order in which the two versions appear differs for each of the three examples below.</p>
<p style="text-align: center;"><a href="http://existentialtype.net/wp-content/uploads/2009/04/qa.png"><img class="alignnone size-full wp-image-309" title="qa" src="http://existentialtype.net/wp-content/uploads/2009/04/qa.png" alt="qa" width="329" height="436" /></a><a href="http://existentialtype.net/wp-content/uploads/2009/04/qb.png"><img class="alignnone size-full wp-image-310" title="qb" src="http://existentialtype.net/wp-content/uploads/2009/04/qb.png" alt="qb" width="326" height="436" /></a></p>
<p style="text-align: center;"><a href="http://existentialtype.net/wp-content/uploads/2009/04/sa.png"><img class="alignnone size-full wp-image-311" title="sa" src="http://existentialtype.net/wp-content/uploads/2009/04/sa.png" alt="sa" width="164" height="226" /></a><a href="http://existentialtype.net/wp-content/uploads/2009/04/sb.png"><img class="alignnone size-full wp-image-312" title="sb" src="http://existentialtype.net/wp-content/uploads/2009/04/sb.png" alt="sb" width="167" height="230" /></a></p>
<p style="text-align: center;"><a href="http://existentialtype.net/wp-content/uploads/2009/04/ampa.png"><img class="alignnone size-full wp-image-307" title="ampa" src="http://existentialtype.net/wp-content/uploads/2009/04/ampa.png" alt="ampa" width="336" height="360" /></a><a href="http://existentialtype.net/wp-content/uploads/2009/04/ampb.png"><img class="alignnone size-full wp-image-308" title="ampb" src="http://existentialtype.net/wp-content/uploads/2009/04/ampb.png" alt="ampb" width="336" height="362" /></a></p>
<p>As you might have guessed, my opinion is that results are so nearly indistinguishable, that given the design limitations of METATYPE1,  it would make much more sense to work with METAFONT and mftrace, and use <a href="http://fontforge.sourceforge.net/">FontForge</a> or a similar tool to add hinting as a postprocessing step.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2009/04/18/testing-mftrace/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Controversial Comic Sans</title>
		<link>http://existentialtype.net/2009/04/18/the-controversial-comic-sans/</link>
		<comments>http://existentialtype.net/2009/04/18/the-controversial-comic-sans/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 06:37:55 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[fonts]]></category>
		<category><![CDATA[graphic design]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[comic sans]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=304</guid>
		<description><![CDATA[I figured I would pass along Emily Steel's Wall Street Journal article: Typeface Inspired by Comic Books Has Become a Font of Ill Will.]]></description>
			<content:encoded><![CDATA[<p>I figured I would pass along Emily Steel's Wall Street Journal article: <a href="http://online.wsj.com/article/SB123992364819927171.html">Typeface Inspired by Comic Books Has Become a Font of Ill Will</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2009/04/18/the-controversial-comic-sans/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>METATYPE1 and meta-fonts</title>
		<link>http://existentialtype.net/2009/04/17/metatype1-and-meta-fonts/</link>
		<comments>http://existentialtype.net/2009/04/17/metatype1-and-meta-fonts/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 22:07:10 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[fonts]]></category>
		<category><![CDATA[graphic design]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[antykwa toruńska]]></category>
		<category><![CDATA[computer modern]]></category>
		<category><![CDATA[latin modern]]></category>
		<category><![CDATA[meta-font]]></category>
		<category><![CDATA[metafont]]></category>
		<category><![CDATA[metapost]]></category>
		<category><![CDATA[metatype1]]></category>
		<category><![CDATA[mftrace]]></category>
		<category><![CDATA[tracing]]></category>
		<category><![CDATA[type 1]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=299</guid>
		<description><![CDATA[I've been spending time lately learning more about working with METATYPE1, mostly for my own projects, but with the eventual hope of writing some tutorials.  While working on one of my running examples, I was encountering some difficulty expressing what I wanted in a reasonably declarative fashion. So I decided to see how it was [...]]]></description>
			<content:encoded><![CDATA[<p>I've been spending time lately learning more about working with <a href="http://www.gust.org.pl/projects/e-foundry/metatype1">METATYPE1</a>, mostly for my own projects, but with the eventual hope of writing some tutorials.  While working on one of my running examples, I was encountering some difficulty expressing what I wanted in a reasonably declarative fashion.  So I decided to see how it was done in <a href="http://www.gust.org.pl/projects/e-foundry/latin-modern">Latin Modern</a>.</p>
<p>I was dismayed to learn that Latin Modern is not a meta-font like <a href="http://en.wikipedia.org/wiki/Computer_Modern">Computer Modern</a>.  Instead the <a href="http://en.wikipedia.org/wiki/PostScript_fonts#Type_1">Type 1</a> versions of Computer Modern (which was developed by either Bluesky or Y&amp;Y) were decompiled into <a href="http://www.tug.org/metapost.html">MetaPost</a> code as raw path outlines.  So at that point all of the useful abstractions in Knuth's original code and specifications have been lost.</p>
<p>The only other major typeface developed in METATYPE1 that I know about, <a href="http://nowacki.strefa.pl/torunska-e.html">Antykwa Toruńska</a>, has no source available and from the description I highly suspect that it was developed by creating raw paths that matched the scanned specimens.  This got me thinking about whether there are any meta-fonts that have been developed in METATYPE1, or even whether Computer Modern might be the only full meta-font family in existence.  I just skimmed through the <a href="http://en.wikipedia.org/wiki/METAFONT">METAFONT</a> sources that are included in <a href="http://www.tug.org/texlive/">TeXLive</a>, but didn't see anything particularly promising yet.</p>
<p>In any event, going back to the original issue, I have been starting to think that maybe the limitations of METATYPE1 are perhaps not worth being able to directly generate Type 1 fonts.  It could be entirely possible that working in METAFONT and using something like <a href="http://lilypond.org/mftrace/">mftrace</a> to generate outline fonts from high-resolution bitmaps will produce results of sufficient quality.  I'm hoping to do some tests to compare the two approaches this weekend.</p>
<p>(It is worth noting, that the comment about METATYPE1 on the mftrace page is slightly incorrect or out of date.  METATYPE1 can handle overlaps, there are just complicated restrictions on how overlapping may occur.  Finding clean approaches to avoid these restrictions was why I became interested in looking at the Latin Modern code to begin with.)</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2009/04/17/metatype1-and-meta-fonts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quality fonts</title>
		<link>http://existentialtype.net/2009/04/12/quality-fonts/</link>
		<comments>http://existentialtype.net/2009/04/12/quality-fonts/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 22:28:52 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[fonts]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[latin modern]]></category>
		<category><![CDATA[tex gyre]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=297</guid>
		<description><![CDATA[The other day on Digg I saw a link for 30 high-quality free fonts for professional designs. Many of the samples seem decent, but I guess it sparked the question in my mind of just what constitutes a "high-quality font". I suppose when I think of a a quality font, I tend to expect a [...]]]></description>
			<content:encoded><![CDATA[<p>The other day on <a href="http://www.digg.com/">Digg</a> I saw a link for <a href="http://www.designer-daily.com/30-high-quality-free-fonts-for-professional-designs-1999">30 high-quality free fonts for professional designs</a>.  Many of the samples seem decent, but I guess it sparked the question in my mind of just what constitutes a "high-quality font".</p>
<p>I suppose when I think of a a quality font, I tend to expect a consistent design along with some of the following:</p>
<ul>
<li>composing characters or glyphs for most diacritical marks, ideally Greek and Cyrillic glyphs as well</li>
<li>proper kerning</li>
<li>appropriate ligatures</li>
<li>old-style numbers</li>
<li>optical sizes</li>
</ul>
<p>Given these criterion, offhand I have to say that perhaps the best high-quality free fonts that I can think of off the top of my head are probably the <a href="http://www.gust.org.pl/projects/e-foundry/tex-gyre/">TeX Gyre</a> fonts and the <a href="http://www.gust.org.pl/gust/projects/e-foundry/latin-modern">Latin Modern family</a>.  I would be curious to hear about other recommendations.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2009/04/12/quality-fonts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Fifth Element</title>
		<link>http://existentialtype.net/2009/04/04/the-fifth-element/</link>
		<comments>http://existentialtype.net/2009/04/04/the-fifth-element/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 18:33:55 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[graphic design]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[aarhus]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[multipass]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=289</guid>
		<description><![CDATA[The other day, a colleague of mine pointed out to me that Aarhus University recently rolled out a new, somewhat controversial,  visual identity that includes a novel geometric alphabet that they call its "fifth element".]]></description>
			<content:encoded><![CDATA[<p>The other day, a colleague of mine pointed out to me that <a href="http://www.au.dk/en">Aarhus University</a> recently rolled out a new, somewhat controversial,  <a href="http://sites.google.com/site/aunewdesign/">visual identity</a> that includes a novel geometric alphabet that they call its "<a href="http://www.au.dk/da/adm/komm/nytdesign/grundelementer/element">fifth element</a>".</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2009/04/04/the-fifth-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fonts in LaTeX, Errata</title>
		<link>http://existentialtype.net/2009/04/04/fonts-in-latex-errata/</link>
		<comments>http://existentialtype.net/2009/04/04/fonts-in-latex-errata/#comments</comments>
		<pubDate>Sat, 04 Apr 2009 17:14:31 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[meta]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[errata]]></category>
		<category><![CDATA[opentype]]></category>
		<category><![CDATA[otftotfm]]></category>
		<category><![CDATA[pdflatex]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[truetype]]></category>
		<category><![CDATA[ttf2tfm]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=280</guid>
		<description><![CDATA[About seven months ago, Vasile Gaburici alerted me to the fact that otftotfm has had experimental support for OpenType fonts TrueType outlines for quite some time. Furthermore, it will use kerning tables that ttf2tfm will ignore.  I am now finally getting around to writing a post to highlight this fact. It seems likely that otftotfm [...]]]></description>
			<content:encoded><![CDATA[<p>About seven months ago, <a href="http://existentialtype.net/2008/07/19/fonts-in-latex-part-three-pdftex-and-truetype/#comment-23826">Vasile Gaburici alerted me</a> to the fact that <code>otftotfm</code> has had experimental support for OpenType fonts TrueType outlines for quite some time.  Furthermore, it will use kerning tables that <code>ttf2tfm</code> will ignore.  I am now finally getting around to writing a post to highlight this fact.</p>
<p>It seems likely that <code>otftotfm</code> may also work on pre-OpenType TrueType fonts because the OpenType font format is essentially the same as the TrueType format with potentially additional tables.  At least, when I did cursory search on my computer I could not find any TrueType fonts that proved to be incompatible with <code>otftotfm</code>.</p>
<p>Therefore, if you want to use a TrueType font with pdfLaTeX you should ignore the instructions I give in <a href="http://existentialtype.net/2008/07/19/fonts-in-latex-part-three-pdftex-and-truetype/">∃xistential Type Fonts in LaTeX, Part Three: pdfTeX and TrueType</a> and use the same instructions as I gave for OpenType fonts in <a href="http://existentialtype.net/2008/07/12/fonts-in-latex-part-two-pdftex-and-opentype/">Fonts in LaTeX, Part Two: pdfTeX and OpenType</a>.  For your convenience, I have also created an updated the <a href="http://existentialtype.net/wp-content/uploads/2009/04/fonts-tutorial.zip">zip file</a> for the example that uses <code>otftotfm</code> instead of <code>ttf2tfm</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2009/04/04/fonts-in-latex-errata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fonts in LaTeX, Part Three: pdfTeX and TrueType</title>
		<link>http://existentialtype.net/2008/07/19/fonts-in-latex-part-three-pdftex-and-truetype/</link>
		<comments>http://existentialtype.net/2008/07/19/fonts-in-latex-part-three-pdftex-and-truetype/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 16:13:22 +0000</pubDate>
		<dc:creator>washburn</dc:creator>
				<category><![CDATA[typography]]></category>
		<category><![CDATA[deja vu sans]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[pdflatex]]></category>
		<category><![CDATA[pdftex]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[tex gyre pagella]]></category>
		<category><![CDATA[truetype]]></category>
		<category><![CDATA[ttf2tfm]]></category>

		<guid isPermaLink="false">http://existentialtype.net/?p=259</guid>
		<description><![CDATA[Update: The information in this post is out of date: otftotfm does presently have support for TrueType outlines. See my errata post for more information. In the previous part of this tutorial, I explained how to put together the minimal infrastructure needed to use an OpenType font with pdfLaTeX.  However, I used the tool otftotfm [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: The information in this post is out of date: <code>otftotfm</code> does presently have support for TrueType outlines.  See my <a href="http://existentialtype.net/2009/04/04/fonts-in-latex-errata/">errata post</a> for more information.</p>
<p>In the <a href="http://existentialtype.net/2008/07/12/fonts-in-latex-part-two-pdftex-and-opentype/">previous part of this tutorial</a>, I explained how to put together the minimal infrastructure needed to use an <a href="http://en.wikipedia.org/wiki/OpenType">OpenType</a> font with pdfLaTeX.  However, I used the tool <code>otftotfm</code> to generate the font metrics TeX needs to lay out text. However, <code>otftotfm</code> only supports OpenType fonts that use PostScript font outlines, as opposed to <a href="http://en.wikipedia.org/wiki/TrueType">TrueType</a> font outlines. So in this part of the tutorial I will explain how to put together the necessary infrastructure for TrueType fonts. In preparation for that, we will first make a few changes to what we had done earlier.</p>
<p>For those that would find it useful, I've put together a  <a href="http://existentialtype.net/wp-content/uploads/2008/07/fonts-tutorial.zip">zip file</a> containing all the files from the tutorials (except the fonts, which I don't want to deal with distributing).</p>
<p>Firstly, we are going to move the uses of <code>\DeclareUnicodeCharacter</code> out of <code>UPagella.fd</code> and into <code>uenc.def</code>:</p>
<pre class="latex">&nbsp;
<span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">uenc.def</span>}
<span style="color: #808080; font-style: italic;">% We are declaring an encoding named &quot;U&quot;</span>
<span style="color: #800000; font-weight: normal;">\DeclareFontEncoding</span>{<span style="color: #2222D0; font-weight: normal;">U}{}{</span>}
&nbsp;
<span style="color: #808080; font-style: italic;">% Technically these are not &quot;allowed&quot; in .def files,</span>
<span style="color: #808080; font-style: italic;">% but this is really the logical place to put the</span>
<span style="color: #808080; font-style: italic;">% declarations.</span>
&nbsp;
<span style="color: #808080; font-style: italic;">% τ (0x03C4) maps to 0xF8 in the encoding</span>
<span style="color: #800000; font-weight: normal;">\DeclareUnicodeCharacter</span>{<span style="color: #2222D0; font-weight: normal;">03C4}{<span style="color: #800000; font-weight: normal;">\char</span>&quot;F8</span>}
<span style="color: #808080; font-style: italic;">% ε (0x03B5) maps to 0xF9 in the encoding</span>
<span style="color: #800000; font-weight: normal;">\DeclareUnicodeCharacter</span>{<span style="color: #2222D0; font-weight: normal;">03B5}{<span style="color: #800000; font-weight: normal;">\char</span>&quot;F9</span>}
<span style="color: #808080; font-style: italic;">% χ (0x03C7) maps to 0xFA in the encoding</span>
<span style="color: #800000; font-weight: normal;">\DeclareUnicodeCharacter</span>{<span style="color: #2222D0; font-weight: normal;">03C7}{<span style="color: #800000; font-weight: normal;">\char</span>&quot;FA</span>}</pre>
<p>As I mention in the comments, the documentation on font encoding definition files does not list <code>\DeclareUnicodeCharacter</code> to be one of the allowed declarations in a such a file, but it works, and it seems like the more logical place to configure it than in the font definition file.</p>
<p>Now that we have removed the uses of <code>\DeclareUnicodeCharacter</code> from <code>UPagella.fd</code>, it looks like:</p>
<pre class="latex">&nbsp;
<span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">UPagella.fd</span>}
&nbsp;
<span style="color: #808080; font-style: italic;">% Delcaring a font family called &quot;Pagella&quot; for the encoding &quot;U&quot;</span>
<span style="color: #800000; font-weight: normal;">\DeclareFontFamily</span>{<span style="color: #2222D0; font-weight: normal;">U}{Pagella}{</span>}
&nbsp;
<span style="color: #808080; font-style: italic;">% Declare that font family &quot;Pagella&quot;, for encoding &quot;U&quot;, has a shape</span>
<span style="color: #808080; font-style: italic;">% with weight medium (m) and normal (n) slant (in otherwords, upright)</span>
<span style="color: #800000; font-weight: normal;">\DeclareFontShape</span>{<span style="color: #2222D0; font-weight: normal;">U}{Pagella}{m}{n</span>}{
  <span style="color: #808080; font-style: italic;">% For all sizes...</span>
  &amp;lt;-&amp;gt;
  <span style="color: #808080; font-style: italic;">% ... use the font named</span>
  TeXGyrePagella-Regular--custom--base
}{}</pre>
<p>I am going to use <a href="http://dejavu.sourceforge.net/wiki/index.php/Download">Deja Vu Sans</a> as the example TrueType font.  Fortunately, if you followed everything from the second part of the tutorial, there is not much that needs to be done.</p>
<p>First, we need to generate metrics for Deja Vu Sans.  As before, if you are using <a href="http://www.tug.org/texlive/">TeX Live</a>, you'll have the necessary program:</p>
<pre>
% ttf2tfm DejaVuSans.ttf -q -T custom
ttf2tfm: WARNING: Cannot find character `compwordmark'
         specified in input encoding.
...
...
ttf2tfm: WARNING: Cannot find character `zdotaccent'
         specified in input encoding.
DejaVuSans   DejaVuSans.ttf Encoding=custom.enc</pre>
<p>The program <code>ttf2tfm</code> is kind of unusual in that it first takes the filename argument and then all the options.  So we've passed it the TrueType font we want to generate metrics for, <code>DejaVuSans.ttf</code>, the option <code>-q</code> to tell it not to print quite so much information, and the option <code>-T custom</code> which tells it to use the encoding defined in the file <code>custom.enc</code> we created in previous part.</p>
<p>Unlike <code>otftotfm</code>, <code>ttf2tfm</code> does not generate an entry that we could use in our <code>map</code> file, <code>custom.map</code>, so we need to write one ourselves.  You will want to start with the <code>map</code> we generated by <code>otftotfm</code> for Tex Gyre Pagella, and you will want to add the line:</p>
<pre>DejaVuSans &lt;custom.enc &lt;DejaVuSans.ttf</pre>
<p>This says to map the TeX font name <code>DejaVuSans</code> to the file <code>DejaVuSans.ttf</code> using the encoding <code>custom.enc</code>.  To learn more about the format of <code>map</code> files, there is a section on them in the <a href="http://sarovar.org/docman/view.php/106/66/pdftex-s.pdf">pdfTeX manual</a>.</p>
<p>Now we just need to create a font definition file for Deja Vu Sans.  However, it is essentially the same as the one we created for TeX Gyre Pagella:</p>
<pre class="latex">&nbsp;
<span style="color: #800000; font-weight: normal;">\ProvidesFile</span>{<span style="color: #2222D0; font-weight: normal;">UDejaVuSans.fd</span>}
&nbsp;
<span style="color: #808080; font-style: italic;">% Delcaring a font family called &quot;DejaVuSans&quot; for the encoding &quot;U&quot;</span>
<span style="color: #800000; font-weight: normal;">\DeclareFontFamily</span>{<span style="color: #2222D0; font-weight: normal;">U}{DejaVuSans}{</span>}
&nbsp;
<span style="color: #808080; font-style: italic;">% Declare that font family &quot;DejaVuSans&quot;, for encoding &quot;U&quot;, has a shape</span>
<span style="color: #808080; font-style: italic;">% with weight medium (m) and normal (n) slant (in otherwords, upright)</span>
<span style="color: #800000; font-weight: normal;">\DeclareFontShape</span>{<span style="color: #2222D0; font-weight: normal;">U}{DejaVuSans}{m}{n</span>}{
  <span style="color: #808080; font-style: italic;">% For all sizes...</span>
  &amp;lt;-&amp;gt;
  <span style="color: #808080; font-style: italic;">% ... use the font named</span>
  DejaVuSans
}{}</pre>
<p>We have just replaced all occurrences of <code>Pagella</code> with <code>DejaVuSans</code>.</p>
<p>Finally, we just need to update our example document to use Deja Vu Sans:</p>
<pre class="latex">&nbsp;
<span style="color: #800000; font-weight: normal;">\documentclass</span>{<span style="color: #2222D0; font-weight: normal;">article</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>[<span style="color: #2222D0; font-weight: normal;">utf8</span>]{<span style="color: #2222D0; font-weight: normal;">inputenc</span>}
<span style="color: #800000; font-weight: normal;">\usepackage</span>[<span style="color: #2222D0; font-weight: normal;">U</span>]{<span style="color: #2222D0; font-weight: normal;">fontenc</span>}
<span style="color: #800000; font-weight: normal;">\pdfmapfile</span>{<span style="color: #2222D0; font-weight: normal;">+custom.map</span>}
<span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\rmdefault</span>}{Pagella</span>}
<span style="color: #800000; font-weight: normal;">\renewcommand</span>{<span style="color: #2222D0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\sfdefault</span>}{DejaVuSans</span>} 
&nbsp;
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}
Testing pdfLaTeX!
&nbsp;
Greek: τεχ.
&nbsp;
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\begin</span></span>{<span style="color: #2222D0; font-weight: normal;">sffamily</span>}
Testing pdfLaTeX!
&nbsp;
Greek: τεχ.
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">sffamily</span>}
<span style="color: #800000; font-weight: normal;"><span style="color: #F00000; font-weight: normal;">\end</span></span>{<span style="color: #2222D0; font-weight: normal;">document</span>}</pre>
<p>Here we have used <code>\renewcommand</code> to set the default sans serif font, <code>\sfdefault</code>, to be <code>DejaVuSans</code>.  In the body of the document, we've copied the text and surrounded it with the <code>sffamily</code> environment to have it typeset in sans serif.</p>
<p>Now we have everything we need to run <code>pdflatex</code>:</p>
<pre>
% pdflatex test-pdflatex.tex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&amp;-line parsing enabled.
...
...
(./test-pdflatex.aux) (./upagella.fd) (./udejavusans.fd) [1]
(./test-pdflatex.aux) ){custom.enc}{a_qnnnfc.enc}&lt;./TeXGyrePage
lla-Regular.pfb&gt;
Output written on test-pdflatex.pdf (1 page, 34857 bytes).
Transcript written on test-pdflatex.log.</pre>
<p>And we have the desired output:</p>
<div style="text-align: center"><a href="http://existentialtype.net/wp-content/uploads/2008/07/test-pdflatex.png"><img class="aligncenter size-full wp-image-260" title="test-pdflatex" src="http://existentialtype.net/wp-content/uploads/2008/07/test-pdflatex.png" alt="Testing pdfLaTeX with both OpenType and TrueType fonts" width="245" height="140" /></a></div>
<p>And that's everything you need to get started with TrueType fonts and pdfLaTeX.  Again, if you encounter any problems or notice any omissions, let me kow. I'll do some investigation and there will possibly be a fourth part on using <a href="http://www.tug.org/applications/fontinst/">fontinst</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://existentialtype.net/2008/07/19/fonts-in-latex-part-three-pdftex-and-truetype/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

