Questions tagged [metafont]

{metafont} is a system for specifying fonts.

Filter by
Sorted by
Tagged with
1 vote
1 answer
76 views

How to loop through ligtable in Metafont?

In roman.mf the kerning is defined for the Computer Modern Roman fonts. I would like to write the ligtable definitions more efficiently but everything I try is wrong: % With macro def group_kerning(...
Weißer Kater's user avatar
4 votes
1 answer
98 views

Simplify code for a < sign in Metafont

As I am a beginner in Metafont, I am still not sure if my code is efficient. I would like to replace the Computer Modern's less than sign by a new one, which has rounded corners. I found 2 ways: The ...
Weißer Kater's user avatar
4 votes
1 answer
110 views

Sharp corners in Metafont?

The source code of the Computer Modern slash is: cmchar "Virgule (slash)"; beginchar("/",9u#,body_height#,paren_depth#); italcorr body_height#*slant-.5u#; adjust_fit(0,0); pickup ...
Weißer Kater's user avatar
1 vote
0 answers
42 views

Wrong results with mf2pt1

I tried to make a vector font font of the Metafont sources of cmr10, but look ... The are only some correct glyphs, almost everything looks wrong. mf2pt1 cmr10.mf Can you tell me what went wrong? ...
Weißer Kater's user avatar
2 votes
1 answer
47 views

How to treat files generated by mfplain?

Metapost can treat Metafont sources with mfplain. Example: mpost -mem=mfplain cmr10.mf Then each glyph is output in separate file like this: cmr10.0 cmr10.1 cmr10.2 ... I cannot find any tutorial ...
Weißer Kater's user avatar
1 vote
0 answers
59 views

Computer Modern Prototype Numbers

When I read Mathematical Typography, I noticed that the prototype font presented (the predecessor of the Computer Modern font family) had different numbers (bottom). My question is, are there any ...
ScreenGems98's user avatar
5 votes
1 answer
221 views

Bisectors the good old compass way

I am trying to reproduce the construction of bisectors with compass. Here is what I managed to get so far vardef bisector(expr A, O, B, r) = save arc, E, F, I; path arc[] ; pair E, F, I[]; % ...
user avatar
2 votes
0 answers
50 views

How do I draw a new character that is consistent with the rest of the cm family?

I want to design new characters (mainly ornaments but also mathematical symbols) for the CM modern font family using METAFONT. What is the best way to achieve consistency with the rest of the family? ...
user avatar
3 votes
1 answer
100 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 (...
Linus Romer's user avatar
2 votes
3 answers
530 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 ...
Someone's user avatar
  • 135
1 vote
1 answer
146 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). ...
user14020101's user avatar
1 vote
0 answers
167 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 ...
RobertR's user avatar
  • 379
3 votes
0 answers
208 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 ...
Thomas Blankenhorn's user avatar
0 votes
0 answers
91 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, ...
BobA's user avatar
  • 1
0 votes
0 answers
69 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....
zmkm's user avatar
  • 379
2 votes
1 answer
76 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 ...
Weijia Fang's user avatar
5 votes
1 answer
192 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? ...
Урош's user avatar
  • 313
1 vote
0 answers
64 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 ...
Guy's user avatar
  • 11
0 votes
0 answers
34 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 ...
Konstantin's user avatar
3 votes
1 answer
70 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(&...
Vladimir's user avatar
  • 589
3 votes
1 answer
120 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; ...
Martino's user avatar
  • 1,400
0 votes
2 answers
772 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 ...
M0M0's user avatar
  • 423
0 votes
0 answers
77 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' ...
Exporer's user avatar
4 votes
0 answers
97 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's user avatar
  • 2,530
3 votes
1 answer
218 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's user avatar
  • 2,530
1 vote
0 answers
57 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 ...
Don Hosek's user avatar
  • 14.1k
1 vote
1 answer
73 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, ...
Faridaghilasse's user avatar
2 votes
1 answer
231 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 ...
baptiste's user avatar
  • 145
3 votes
2 answers
1k 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 ...
Simon R.'s user avatar
1 vote
0 answers
149 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....
nadder's user avatar
  • 249
2 votes
1 answer
272 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 ...
Abdallah's user avatar
  • 533
5 votes
1 answer
789 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. ...
baptiste's user avatar
  • 145
3 votes
1 answer
286 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} \[\...
Sebastiano's user avatar
  • 54.1k
6 votes
2 answers
778 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 ...
Niels Wer's user avatar
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-...
Johnny Canuck's 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 ...
Skydiver's user avatar
  • 977
0 votes
0 answers
160 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 ...
Furdzik Zbignew's user avatar
1 vote
1 answer
1k 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 ...
Eric's user avatar
  • 669
2 votes
1 answer
86 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 ...
Yaacov NNNNM's user avatar
1 vote
1 answer
147 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,...
Makogan's user avatar
  • 885
0 votes
0 answers
135 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 ...
Jonathan Nordmann's user avatar
6 votes
2 answers
329 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 ...
user2925716's user avatar
  • 1,940
4 votes
1 answer
2k 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 METAFONT that these book contain and a compiler for the sources that would understand ...
user2925716's user avatar
  • 1,940
2 votes
0 answers
100 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, "...
user2925716's user avatar
  • 1,940
4 votes
1 answer
123 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 ...
Felipe Dilho's user avatar
3 votes
1 answer
268 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 ...
Ana Fernandes's user avatar
2 votes
1 answer
157 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 ...
Silverspur's user avatar
2 votes
0 answers
147 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=...
Toothrot's user avatar
  • 3,346
2 votes
1 answer
91 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 ...
Toothrot's user avatar
  • 3,346
2 votes
0 answers
56 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; ...
Toothrot's user avatar
  • 3,346