Questions tagged [metafont]

{metafont} is a system for specifying fonts.

Filter by
Sorted by
Tagged with
3 votes
1 answer
72 views

Determine whether a path in Metapost/Metafont is a line

Given an already defined path p in Metapost/Metafont: How can I determine whether a segment like subpath (0,1) of p is a line? I am aware that I can simply check if the control points lie on the line (...
2 votes
2 answers
107 views

Unable to get the japanese character Hiragana "yo" in PdfLaTeX using TeXstudio

How do I install the Japanese dmjhira font in MikTex 2.9? I am trying to do the same task as mentioned in the above question. My goal is to produce the Hiragana "yo" character in my latex ...
  • 123
1 vote
1 answer
106 views

Producing a thin version of Computer Modern by tweaking the Metafont parameters

I am hoping to produce a custom version of all Computer Modern glyphs, where the parameters are tweaked such that the pen strokes are very thin (essentially no filling, just central skeleton strokes). ...
0 votes
0 answers
133 views

Computer Modern vector fonts with meta-ness

Has anyone completed or seriously attempted a translation of the Computer Modern MetaFont sources into MetaType1 code that retains the family's meta-ness (i.e., ability to generate new fonts by ...
  • 349
3 votes
0 answers
145 views

How to make a "Computer Modern Medium" font?

In [La]TeX documents printed in the early 1980s, fonts look noticeably thicker than they do today. Something about the advent of modern laser printers and the disappearance of older printing ...
0 votes
0 answers
54 views

Running Metafont in TeXLive in Windows

I have a user defined font, created with a small collection of .mf files. I am using this font for many documents and work on them using TeXLive in Windows. I did not create the user defined font, ...
  • 1
0 votes
0 answers
58 views

Error trying to load Metafont

I ranmf in terminal and got this error. Does anyone know how to resolve it? Context: I installed Metafont from the standard MacTex install. Thank you! dyld[759]: Library not loaded: /opt/X11/lib/libSM....
  • 369
2 votes
1 answer
67 views

Can anyone familiar with Metafont help me sort this out?

I tried to use Metafont to output a lowercase letter i, but the result was lamentable. It was almost as if the unit of measurement inside a character definition is different from outside. Regular.mf ...
5 votes
1 answer
123 views

Metafont/Metapost — Find a path tangent through the external point

Assuming that I have the path P given, and let the T be a point outside the path P. Is there an easy way to find the point X on the path P such that the tangent on point X going through the point T? ...
  • 273
1 vote
0 answers
47 views

METAFONT bitmap latin glyphs

I'm building a font format that integrates multiple point size bitmap glyphs. On eInk monochrome displays, bitmap fonts are still the best way to get reasonably good characters. I've been able to use ...
  • 11
0 votes
0 answers
32 views

METAFONT failed for unknown reasons [duplicate]

I encounter with a METAFONT error while compiling Latex file (with beamer package). Some people in this community also faced it, but proposed solutions were useless (updating Miktex & refreshing ...
3 votes
1 answer
59 views

Custom PK-file is not accessible for DVI-driver

I try to understand how new fonts are created. I drew my stylized letter 'L'. Then I programmed it in Metafont (MyL.mf). mode_setup; fontmaking:=1; pixels_per_inch:=600; beginchar(&...
  • 515
3 votes
1 answer
90 views

metafont mode dpdfezzz

I'd like to look at the pk files metafont generates, in particular at their maximum resolution i.e. 8000dpi. I know that this is possible performing mf \mode=dpdfezzz; mode_setup; \input filename.mf; ...
  • 1,360
0 votes
2 answers
470 views

most tfm fonts are not found

I had the same problem with texlive 2020 and did a full installation of texlive 2021: \font\tenrm=mdugmm7y at 10pt \tenrm Hello World! \bye doesn't work with tex, pdftex, xetex or luatex. All of ...
  • 423
0 votes
0 answers
69 views

Extracting formulae from TeX/ Metafont

I wish to create a program outside of Metafont that creates letters mathematically. In researching any available resources, I have found Metafont as a language to create 'mathematically described' ...
4 votes
0 answers
92 views

METAFONT MiKTeX doesn't relax [closed]

This is what happens when I say \relax to MiKTeX's METAFONT, under Windows. On the TeXLive's version of METAFONT on Linux it behaves fine. Why is that? MiKTeX's MetaPost on Windows instead works ...
  • 2,539
3 votes
1 answer
196 views

Computer Modern not raster. Why?

The fonts produced by METAFONT should be raster rather than vector, as far as I know. The Computer Modern font is produced by METAFONT, hence it should be raster. The following code \font\testfont= ...
  • 2,539
1 vote
0 answers
49 views

GF specials and their attachment to characters

One for the obsolete file format anoraks—DEK doesn't seem to make this clear anywhere in the gftodvi source code—I think that GF specials apply to the character data that follows them and that ...
  • 13.3k
1 vote
1 answer
64 views

gray font compilation failure

while compiling the gray font using the default mode (ljfour), I get this message: "I can't write on file 'gray.log'...". The complete message is shown in the attached figure. In addition, ...
2 votes
1 answer
177 views

Metafont glyph description processed by Metapost to return svg paths

I'm hoping to generate SVG paths for a large number of characters, and I wonder if this could be automated via Metapost. From what I've read, mpost ’&mfplain’ cmr10 will let mpost process a ...
  • 125
3 votes
2 answers
744 views

create Meta-Font

I know, you're supposed to only ask questions about very specific technical problems and this is not such a question. If you think that this post is inappropriate, please tell me so, by writing a ...
1 vote
0 answers
126 views

Why does the blackboard letters of the amsfont msbm have strange chardx values?

The font msbm which can be found under fonts/source/public/amsfonts/symbols in texlive has strange chardx width values set. If I run mf "\mode=localfont; input msbm10" I get the file msbm10....
  • 249
2 votes
1 answer
184 views

Tikz: How to build a dashpattern with multiple colors?

Drawing inspiration from the question TikZ: Get values for predefined dash patterns, I would like to draw a node using a dash pattern that uses multiple color. The pgfmanual entry on dash pattern ...
  • 533
5 votes
1 answer
661 views

Math font as single stroke, no fill

I'm trying to create a hand-writing animation effect for video presentations. The standard open tool trick for this is to draw SVG paths and animate the dash pattern from 0 to the end of the path. ...
  • 125
3 votes
1 answer
233 views

"Pixel zoom" of an integral using amsart and esint

A simple question: I have this minimal working example where I use amsart with esint: \documentclass[11pt,oneside]{amsart} \usepackage{mathtools} \usepackage{esint} \begin{document} \[\...
  • 49.7k
6 votes
2 answers
544 views

Randomized fonts for handwritten look

I created a Metafont font with a randomizer, such that each time I compile the font, it looks different. Using those fonts, I like to create handwritten looking parts in my document. I would like to ...
3 votes
1 answer
2k views

sudden issue with METAfont | MikTeX

So, nary a problem for quite a while, but for some reason, today, when I try to use yap in MikTeX to look at a .dvi file, yap throws the following error, suggesting that modes.mf is missing. [Using 64-...
6 votes
3 answers
2k views

Is it possible to replace the \mathbbm letters with less grainy ones?

Using the bbm package, one can generate letters that look like this: \documentclass{report} \usepackage{bbm} \begin{document} $\mathbbm{A}$ \end{document} As you can see, this has a really low ...
  • 937
0 votes
0 answers
143 views

Editing a script in cursive format

Good morning, everybody, Well, I'm a beginner and it's really hard to find what I'm looking for. Please let me know if anyone knows how to modify the script below that would allow me to write the ...
1 vote
1 answer
844 views

METAFONT failed for some reason, unable to find transcript file

A simple latex document of mine is attempting to invoke the following, which fails $ miktex-makepk --verbose tcit0800 525 600 0+525/600 Trying to make PK font tcit0800 at 525 DPI... The METFAONT mode ...
  • 455
2 votes
1 answer
75 views

Have MetaFont read an arithmetic expression from a file

I know this is a question that possibly does not belong to pure TeX, as MetaFont is part of a project to which TeX relates, ie as part of building TeX. My question is as follows: I call MetaFont from ...
1 vote
1 answer
130 views

Metapost how can you return values in a recursive function?

I am trying to code the recursive definition of B splines but I am stuck writing the recursion, my code won't compile because I am trying to assign "vacuous to numeric", According to online resources,...
  • 883
0 votes
0 answers
95 views

Using DTX Metafonts as system fonts

Dear Stack Exchange team, I am a relatively inexperienced user of LaTeX who is currently working on a project which also requires the use of an image editing tool, in this case GIMP. As I would like ...
6 votes
2 answers
284 views

A METAFONT character

I successfully generated a METAFONT character by the program below. How do I use it in LaTeX/XeTeX. mf a.mf gftodvi a.2602gf a.dvi I.e. what packages should I use and how do I use "b" from that ...
  • 1,812
4 votes
1 answer
1k views

Knuth's 5 volume TeXbook A,B,C,D and E

Can I freely download the Knuth's 5 volume set books COMPUTERS and TYPESETTING in pdf and the source of TeX and {\sf METAFONT} that these book contain and a compiler for the sources that would ...
  • 1,812
2 votes
0 answers
96 views

METAFONT expects file rather than a command

I was trying to carry out the very first and basic example in Knuth's book "the METAFONT book": I typed \relax and then drawdot (35,70); showit; HOWEVER, as the black part of the snippet show, "...
  • 1,812
4 votes
1 answer
102 views

Does metapost contain the penstroke abbreviation command?

Hello I am trying to use Metapost to create a font, and I have been using the Metafontbook to study, there it states that the penstroke command is a type of abbreviation command for the command fill ...
2 votes
1 answer
221 views

Relationship between TeX and Metafont with parametric variations

In "The Concept of a Metafont" Donald E. Knuth explores in a visual way the possibilities of parametric variations. But I have some questions: Did he used TeX to typeset the article? Does TeX allows ...
2 votes
1 answer
138 views

How to align text on baseline in MetaFun without using setMPtext?

I want to draw several pieces of text that should be aligned so I need to be able to place these texts according to their baseline. Looking at the MetaFun manual, pages 143-144, it is explained that ...
2 votes
0 answers
118 views

How do I get mflua to work?

I found a programme named mflua, that said: $ mflua MFLua version: 0.9.1 MFLua banner: This is MFLua, Version 2.7182818-0.9.1 This is MFLua, Version 2.7182818-0.9.1 (TeX Live 2019) (preloaded base=...
  • 3,296
2 votes
1 answer
88 views

Deleting a point in METAFONT

In METAFONT, run interactively, is it possible to give a new value to a point variable? If you just try to equate a point to a new point, the equation will be inconsistent with other equations. If ...
  • 3,296
2 votes
0 answers
52 views

METAFONT: When a letter is mostly repetition of another

I added a couple of letters to the logo font. beginlogochar("C",14); x3=leftstemloc; x1=x5=w-x3; x2=x4=.382[x3,x1]; top y1=h; y3=barheight; bot y5=0; y2=y1; y4=y5; draw z1--z2; draw z4--z5; ...
  • 3,296
1 vote
1 answer
88 views

Drawing part of a path in METAFONT

In METAFONT, is there a way to draw part of a path? If I have the programme mode_setup; em#:=10pt#; define_pixels(em); beginchar("a",em#,em#,0); z1=(0,0); z2=(w,h); pickup pencircle scaled .2pt; ...
  • 3,296
2 votes
1 answer
166 views

How can I get vector shapes from the METAFONT font `eiad` in 2019?

eiad is a font from a different era, and seemingly almost unusable today. I can't use it at all with XeLaTeX, and when I begrudgingly tried to use it with pdflatex, I get only an ugly rasterization, ...
1 vote
1 answer
350 views

pkfix-helper shows METAFONT error (can't find file `ecsy')

I tried to use pkfix-helper, but I get a strange error from METAFONT. I'm MiKTeX and all packages are updated to the newest version. What does this error mean and how can I fix it? C:\Users\username\...
  • 8,429
0 votes
1 answer
275 views

How to disable `mktexpk` in `dvips`?

Consider this ex-14-5.mf: mode:=ljfour; % 600dpi for dvips (you must run "gftopk") mode_setup; beginchar("e",10pt#,7.5pt#,2.5pt#); pickup pencircle scaled (.4pt+blacker); draw fullcircle scaled .2w ...
0 votes
2 answers
128 views

Syntax rules for `variable`

I have last printing of MetafontBook (8th printing, Volume C). Since that printing (and hence since all other printings), two very curious corrections appeared in errata: 1) Question concerning this ...
6 votes
1 answer
125 views

MetaFont: character dimension of unchanged glyphs change when adding new glyphs?

I have a very strange effect while debugging yhmath math fonts items. I am generating cmex10.tfm from cmex10.mf, and convert the tfm to pl file. Then I rename only rename the driver file to yrcmex10....
  • 8,000
1 vote
0 answers
137 views

AMS Euler, but slightly heavier using METAFONT?

I'm using a commercial body text font and I'd like to use a math font that matches it well. AMS Euler (from the eulervm package) matches its style nicely, but is slightly too light. I know AMS Euler ...
1 vote
0 answers
104 views

how to convert metafont created fonts to PS 1 fonts

I have a font (for the script of my language) which was created using metafont. But as is the usual problem with 8-bit fonts it does not scale well. So I have had to create multiple tfm files for ...