Questions tagged [metafont]

{metafont} is a system for specifying fonts.

Filter by
Sorted by
Tagged with
0 votes
1 answer
68 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). ...
user avatar
0 votes
0 answers
94 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 ...
user avatar
  • 319
3 votes
0 answers
100 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 ...
user avatar
0 votes
0 answers
21 views

increasing resolution

I have a user-defined font, which I did not create, but one for which I would like to increase the resolution. I have tried to define a mode with more pixels per inch, but this does not seem to have ...
user avatar
  • 1
0 votes
0 answers
19 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, ...
user avatar
  • 1
0 votes
0 answers
27 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....
user avatar
  • 339
0 votes
0 answers
73 views

GFtoPK (MikTeX, Metafont) crashes in supre mode for fonts in certain optical sizes

Certain pk files are not produced by GFtoPK, but I get the problem only in supre mode. When I remove this mode, every font works, but the bitmaps are ungly then. MWE: \documentclass{article} \...
user avatar
2 votes
1 answer
62 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 ...
user avatar
5 votes
1 answer
94 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? ...
user avatar
  • 273
1 vote
0 answers
39 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 ...
user avatar
  • 11
0 votes
0 answers
31 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 ...
user avatar
3 votes
1 answer
53 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(&...
user avatar
  • 515
3 votes
1 answer
75 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; ...
user avatar
  • 1,318
0 votes
2 answers
254 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 ...
user avatar
  • 359
0 votes
0 answers
67 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' ...
user avatar
3 votes
0 answers
84 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 ...
user avatar
  • 2,499
3 votes
1 answer
167 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= ...
user avatar
  • 2,499
1 vote
0 answers
42 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 ...
user avatar
  • 12.9k
1 vote
1 answer
54 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, ...
user avatar
2 votes
1 answer
137 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 ...
user avatar
  • 115
2 votes
2 answers
474 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 ...
user avatar
1 vote
0 answers
105 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....
user avatar
  • 249
2 votes
1 answer
119 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 ...
user avatar
  • 533
5 votes
1 answer
555 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. ...
user avatar
  • 115
3 votes
1 answer
178 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} \[\...
user avatar
  • 46.1k
6 votes
2 answers
394 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 ...
user avatar
3 votes
1 answer
1k 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-...
user avatar
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 ...
user avatar
  • 927
0 votes
0 answers
110 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 ...
user avatar
1 vote
1 answer
654 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 ...
user avatar
  • 413
2 votes
1 answer
70 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 ...
user avatar
1 vote
1 answer
83 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,...
user avatar
  • 863
0 votes
0 answers
78 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 ...
user avatar
6 votes
2 answers
241 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 ...
user avatar
  • 1,838
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 ...
user avatar
  • 1,838
1 vote
0 answers
94 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, "...
user avatar
  • 1,838
4 votes
1 answer
87 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 ...
user avatar
2 votes
1 answer
173 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 ...
user avatar
2 votes
1 answer
117 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 ...
user avatar
2 votes
0 answers
98 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=...
user avatar
  • 3,256
2 votes
1 answer
83 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 ...
user avatar
  • 3,256
2 votes
0 answers
50 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; ...
user avatar
  • 3,256
1 vote
1 answer
64 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; ...
user avatar
  • 3,256
2 votes
1 answer
139 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, ...
user avatar
1 vote
1 answer
292 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\...
user avatar
  • 8,259
0 votes
1 answer
213 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 ...
user avatar
0 votes
2 answers
110 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 ...
user avatar
6 votes
1 answer
116 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....
user avatar
  • 7,850
1 vote
0 answers
123 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 ...
user avatar
1 vote
0 answers
86 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 ...
user avatar