Typophile - Comments for "Creating TeX Fonts and Symbols" http://typophile.com/node/43489 Comments for "Creating TeX Fonts and Symbols" en Glen, I’ll send something http://typophile.com/node/43489#comment-268359 <p>Glen,</p> <p>I'll send something in the next couple days--after I look through what I have and see what I remember about it.</p> <p>st</p> Tue, 25 Mar 2008 20:44:15 +0000 Scott Thatcher comment 268359 at http://typophile.com @Charles: I use LaTeX. Are http://typophile.com/node/43489#comment-268209 <p><cite>@Charles: I use LaTeX. Are the differences between TeX / LaTeX / LaTeX2e / ... spelled out in one of the resources?</cite></p> <p>I flat don't know. We started with plain TeX -- could never abide LaTeX -- and wrote our own macros, including pagination. That took Larry Tseng several years all told, but did give us control.</p> Mon, 24 Mar 2008 21:25:59 +0000 charles ellertson comment 268209 at http://typophile.com Thank you very much for all http://typophile.com/node/43489#comment-268163 <p>Thank you very much for all the help! I am looking forward to going over all the resources more in depth this weekend. </p> <p>@Charles: I use LaTeX. Are the differences between TeX / LaTeX / LaTeX2e / ... spelled out in one of the resources? </p> <p>@Scott: Thank you for the great suggestions! Would you be able to send me the files you worked on? That would be really helpful as I try to sort through everything. My email is <a href="mailto:wilson47@tcnj.edu">wilson47@tcnj.edu</a> .</p> <p>Thanks again!</p> Mon, 24 Mar 2008 17:23:21 +0000 Glen comment 268163 at http://typophile.com I spent the summer before my http://typophile.com/node/43489#comment-267966 <p>I spent the summer before my son was born obsessing about creating a companion math font to go with Aldus. After my son was born, well it didn't seem quite so important. :)</p> <p>In addition to the resources mentioned above, you can look up the <a class="freelinking external" href="http://www.tug.org/applications/fontinst/" rel="nofollow">fontinst</a> script, which has been the standard method to install Type 1 fonts for use with LaTeX. Philipp Lehmann's tutorial (found at the link above) has been especially helpful. The <a class="freelinking external" href="http://www.lcdf.org/type/otftotfm.1.html" rel="nofollow">otftotfm</a> software is another way to install OpenType fonts for TeX (perhaps not as automatic as the tool mentioned above).</p> <p>When I tried creating a Math Font, I remember that I started by finding the pfb files for 10-point Computer Modern and altering the glyph shapes without altering the spacing of the characters (I wanted to start on the glyphs before worrying about how to correctly space the math fonts--I knew I could use the font metric files for Computer Modern while I was working on the glyphs). That method also helped me really learn what was in each file. Check out cmex10.pfb, cmsy10.pfb and cmmi10 (I think). I also found the source for the psnfss package (psnfss-source is what is looks like in my files right now) and looked at the code that generates the mathppl or mathpazo fonts. I think the file pazofnst.tex was the one I looked at because I wanted to basically recreate the mathpazo package using math fonts other than the computer modern ones. I did a lot of looking and a lot of pondering, but I eventually was able to understand most of what was going on (unfortunately, now I've lost many of the details).</p> <p>One resource I found really helpful was the book <em>TEX Unbound: Latex and TEX Strategies for Fonts, Graphics, and More</em> by Alan Hoenig. Math fonts in TeX really do seem to be something of a mysterious thing (especially at first), and this was the first book I found that gave information about them in a more digestible form.</p> <p>I'd be happy to send you the files I created in trying to make my math font--not because they're at all perfect, but they might show the things you have to look at to get started.</p> <p>I second the idea of getting involved in TUG, and I assume that you are aware of usenet groups like comp.text.tex (I think) and other mailing lists that can be found through TUG or CTAN. I'm subscribed to the tex-fonts mailing list through math.utah.edu, and TUG seems to have a math-font-discuss list (which might really be the same list?). The tex-fonts list doesn't get a lot of traffic, but questions are usually quickly addressed.</p> <p>As an aside, I've always thought it would be great for someone to make a multiple-master font just for mathematical symbols--nothing that requires <em>too much</em> design skill, just so that it would be possible to quickly generate a math font that matches the weight of any particular text font. I think someone did this with metafont, but the result at the time was the generation of bitmapped fonts, not scalable fonts.</p> <p>Finally, I've also noted that the beamer package has code that automatically substitutes your chosen text font for the letters (not symbols) when you use math mode. This isn't standard behavior in LaTeX, and I've always meant to check out how it's done automatically (whether it's easy or hard). It _is_ fairly easy (after you start to understand what's going on) to copy a file like mathpazo.sty and by hand replace the references so that the letters in math mode will match another typeface, even if you don't create a new symbol font to go along with it.</p> <p>This may be more than you want, but do feel free to contact me if you have specific questions that I might be able to answer.</p> <p>st</p> Sun, 23 Mar 2008 21:14:19 +0000 Scott Thatcher comment 267966 at http://typophile.com Plain TeX or LaTeX? Are you http://typophile.com/node/43489#comment-267910 <p>Plain TeX or LaTeX? Are you familiar with the TeX User's Group? If not, you should join.</p> Sun, 23 Mar 2008 11:42:10 +0000 charles ellertson comment 267910 at http://typophile.com A good reference on how http://typophile.com/node/43489#comment-267906 <p>A good reference on how fonts work with TeX is the book <a class="freelinking external" href="http://www.oreilly.com/catalog/9780596102425/" rel="nofollow"><em>Fonts and Encoding</em></a> by Haralambous. It explains in detail all the steps to make a postscript font work with LaTeX. If you want to do everything by hand, these steps are:</p> <ul> <li>Step 1: make a .pfb file out of your font.</li> <li>Step 2: make a corresponding .tfm file; this can be done with <a class="freelinking external" href="http://fontforge.sourceforge.net/PfaEdit-TeX.html" rel="nofollow">fontforge</a>, but you might fint it easier to do it by hand.</li> <li>Step 3: choose an encoding or make a new .enc file for your font; this depends whether the glyphs you are making are standard or not.</li> <li>Step 4: make a .map file to tell dvips or pdftex that they must use your .pfb file with the corresponding .tfm file and the encoding you chose.</li> <li>Step 5: make a .fd file (font definition file) for latex to be aware of the font.</li> <li>Step 6: make a .sty file (a LaTeX package) which will give the user shortcuts for the symbols in your font (or which will swich the text font to your new font if you made a text font).</li> </ul> <p>You must then install the font on your system in order to test it. The procedure depends on your TeX distribution, but typically, you must put all the preceding files into a local texmf tree following the TDS specification, then tell LaTeX that it must must use the .map file you made and finally update the file name database with a texhash and a updmap.</p> <p>It might seem a bit complicated, but once you've done it a couple of time, you'll get used to it.</p> Sun, 23 Mar 2008 10:42:08 +0000 philippe_g comment 267906 at http://typophile.com What specifically are you http://typophile.com/node/43489#comment-267890 <p>What specifically are you trying to do? Use existing fonts in TeX, or create your own? And text mode or math mode?</p> <p>If all you're looking to do is use an existing font in text mode, I can highly recommend fontools' autoinst script (<a class="freelinking external" href="http://www.ctan.org/tex-archive/fonts/utilities/fontools/" rel="nofollow">http://www.ctan.org/tex-archive/fonts/utilities/fontools/</a>); installing OpenType fonts with this script actually just works (believe it or not), and you get access to all of the OpenType goodness present in these fonts--text figures, small capitals, weight and width changes; the works. autoinst doesn't do anything about math mode fonts; they're a black art that I haven't had sufficient need to figure out yet. autoinst also only works for OpenType font, which has never been a problem for me; I vastly prefer OpenType format for all my fonts anyway.</p> <p>If you want to make your own fonts and use them in TeX, I would recommend just crafting an OpenType font in FontForge (or FontLab, or whatever you can get your hands on), and using autoinst above to import it as a text font. But, again, this won't work for math fonts. I suspect just adding a math symbol or two would be fairly easy, but every symbol I've ever needed has already been created by someone else (<a class="freelinking external" href="http://www.ctan.org/tex-archive/info/symbols/comprehensive/symbols-letter.pdf" rel="nofollow">just look at them all!</a>).</p> <p>Whatever you do, you'll probably need a copy of <em>The LaTeX Companion</em>, second edition (if you don't already have it). My poor copy isn't that old and it's already starting to grow dog ears....</p> Sun, 23 Mar 2008 05:26:52 +0000 JBlock comment 267890 at http://typophile.com