Questions tagged [metafont]
{metafont} is a system for specifying fonts.
204 questions
6
votes
1
answer
122
views
Why is my METAFONT code wrong?
mode_setup;
thick#:=10pt#;
thin#:=5pt#;
xoo#:=15pt#;
yoo#:=20pt#;
dot#:=4pt#;
slant#:=0pt#;
define_pixels(thick, thin, xoo, yoo, dot, slant);
ascender:=3;
descender:=1;
def be(expr x, y) = (x*xoo+y*...
4
votes
1
answer
187
views
How to make a straight-line stroke that transitions from thick to thin in METAFONT?
is it possible to make a stroke that transitions from thick to thin, like a Chinese brush or a calligraphy pen? Not like a bent hook that fakes the transition using elliptical pens, that one is ...
-1
votes
1
answer
59
views
METAFONT - help with em and ex [closed]
How do I set up the em and ex in METAFONT so that I can use it later in LaTeX?
3
votes
1
answer
62
views
METAFONT character sizes are unpredictable
I thought I finally fixed a size issue, but when I wanted to fix a character and re-ran METAFONT, the dimensions are too big, and there is too much empty space. The results are similar to what I see ...
-1
votes
1
answer
73
views
Horizontal stroke character "-" overlaps [closed]
I defined a custom character:
% strokeff.mf
mode_setup;
xoo#:=10pt#;
yoo#:=10pt#;
thick#:=5pt#;
define_pixels(xoo, yoo, thick);
beginchar(0, 7*xoo#, 7*yoo#, 0); %H
pickup pencircle scaled thick;
...
2
votes
1
answer
48
views
How to set a custom encoding in Metafont?
font_quad:=150pt#;
font_normal_space:=50pt#;
font_normal_stretch:=6pt#;
font_normal_shrink:=5pt#;
font_identifier:="tpie";
font_coding_scheme:="AEFMNOPST only";
What ...
5
votes
2
answers
1k
views
How to typeset the "point d'ironie" [irony period]
In the mid-eighteen hundred, a french poet and pamphletist proposed a new typographical sign that he called the "point d'ironie" [irony period], which looks like:
Nowadays, it is generally ...
1
vote
0
answers
76
views
Survival tips for screen-reading Metafont [closed]
The default font in (La)TeX, Computer Modern as rendered through Metafont, is notoriously poor for screen reading, because Metafont rasterizes characters to a particular DPI, and so documents must be ...
6
votes
1
answer
768
views
Is TeX output supposed to be vector or raster?
I have heard that Metafont produces rasterized fonts. However, if I run the command tex on a plain text file containing
this font is not rasterised!!!
I get a dvi output where even after zooming ...
1
vote
1
answer
139
views
How to increase Metafont component capacity?
The Metafont book says (but not how):
What can be done if METAFONT’s capacity is exceeded? All of the above-listed
components of the capacity can be increased, except the memory for kerns and
...
2
votes
1
answer
98
views
How to scale a \newfont and keep the same \pdfpkresolution for all font sizes?
I have created my Metafont font at a fixed resolution and can load it like the following:
%\pdfpkresolution=72
\documentclass[a4paper]{article}
\usepackage[left=2cm,right=2cm]{geometry}
\usepackage[T1]...
5
votes
0
answers
205
views
Image of Knuth measuring glyphs
I remember once seeing a photo of Knuth measuring glyphs when working on METAFONT. The glyphs (probably drawn by hand) were projected very large onto a wall or screen with an overhead projector.
My ...
3
votes
2
answers
187
views
How are data structures for METAFONT variables represented inside of the computer?
I'm trying to understand §228 and §229 in mf.pdf
I ended up with this diagram:
It is not clear to me from the documentation what is inside qqq, qqq1 and qqq2.
Also, can somebody explain what this ...
0
votes
1
answer
137
views
Font techonology/format support in modern Linux vs modern LaTeX
Fonts can be represented, expressed or stored in any of several technologies and formats; and not every software system which uses fonts supports the exact same set of these technologies and formats.
...
3
votes
1
answer
318
views
Using METAFONT fonts in a LaTeX document: guide and setup
How can I extract fonts created with METAFONT and use them in a LaTeX document?
I have found a guide https://www.tug.org/TUGboat/tb35-1/tb109romer.pdf, and a package on CTAN, https://ctan.org/pkg/...