.MF

Файл MF

Metafont Source File
Задать вопрос
БЫСТРЫЙ ОТВЕТ

A MF file is a plain-text program written in Donald Knuth's Metafont language that describes a font by pen strokes and parameters. Any text editor opens it for reading; to build a usable font, compile it with the 'mf' program from a TeX distribution (TeX Live, MiKTeX, or MacTeX). If your file is named MANIFEST.MF, it is a Java JAR manifest - an unrelated format that shares the extension.

Разработчик: Donald E. Knuth (Metafont system, part of the TeX project) Категория: Файлы разработчика Открыть стандартное MIME: text/plain
ОТКРЫВАЕТСЯ НА Windows macOS Linux
Связанные: .DO · .MD · .HEX · .XSD

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Jul 8, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла MF?

.mf is a plain-text source file written in the Metafont programming language, created by Donald E. Knuth as part of the TeX typesetting system. Rather than describing glyphs as fixed outlines, a .mf file defines letterforms programmatically using pen strokes, curves, and parametric equations - letting a single source file generate fonts at any resolution or optical size by adjusting variables.

To produce usable output, a .mf file is compiled by the mf command-line program (included in distributions such as TeX Live and MiKTeX). The compiler takes the source along with a mode specification (e.g., ljfour for a LaserJet at 600 dpi) and produces two outputs:

  • A .TFM metric file that TeX reads for character widths, heights, and kerns.
  • A .GF or .PK bitmap file containing rasterized glyphs at the target resolution.

The files are ASCII text with no magic bytes or binary header. Typical statements include mode_setup;, beginchar(...);, pickup pen;, and endchar;, ending the program with end. The companion format MetaPost (.mp) later extended Metafont's language for general vector graphics.

Metafont remains in active use because the Computer Modern and AMS typeface families - the default fonts of TeX and LaTeX - are distributed as .mf source. Editing requires knowledge of the Metafont language; any plain-text editor can open the files, though dedicated TeX editors such as TeXstudio provide syntax awareness.

Безопасность и защита

РИСК: LOW

A Metafont .mf is plain text and contains no executable machine code, so reading it is safe. Compiling runs the trusted 'mf' interpreter from a TeX distribution. The only confusion risk is mistaking it for a JAR MANIFEST.MF; both are harmless text, but they belong to entirely different toolchains.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕMetafont Source Fileтакже известен как METAFONT file, Metafont program
РАЗРАБОТЧИКDonald E. Knuth (Metafont system, part of the TeX project)с 1979 (Metafont); rewritten Metafont84 (1984)
MIME-ТИПtext/plain
ТИПPlain-text font-description program (Metafont language source)
СТАНДАРТОткрытый · без роялти
СВЯЗАННЫЕ.do.md.hex.xsd
Это расширение также используется в…
  • Java/JAR MANIFEST.MF - Inside a JAR, META-INF/MANIFEST.MF is a plain-text manifest (Main-Class, versions) - the likely source of the DB's 'Sun Microsystems' developer tag.
  • Maven / build metadata .mf - Some Java tooling and OSGi bundles ship manifest fragments with a .mf extension; plain text key:value pairs.

Программы, открывающие файлы MF

Windows2 apps
MiKTeX (mf compiler) Открытый код Install MiKTeX, then run 'mf <file>.mf' (or 'mf \mode=localfont; input file') in a terminal to compile to .tfm/.gf. Read/edit the source in any text editor.
Text editor (Notepad++, VS Code) Открытый код Open the .mf to read or edit the Metafont source (it's plain text). Compiling still needs the 'mf' program.
macOS2 apps
Text editor Открытый код Open the .mf to read or edit the Metafont source.
MacTeX (mf compiler) Открытый код Install MacTeX, then run 'mf' in Terminal to compile the .mf. Edit the source in any editor.
Linux2 apps
Text editor Открытый код Open the .mf to read or edit the Metafont source.
TeX Live (mf compiler) Открытый код Install texlive, then 'mf file.mf' compiles it to .tfm/.gf. Edit the source in any text editor.

Технические подробности

глубокая спецификация
Format typePlain-text Metafont-language source program; defines font glyphs as programs, not fixed outlines
Character encodingASCII; no multi-byte characters in the Metafont language itself; files open without conversion in any plain-text editor
Magic bytes / signatureNone - no binary header; identified by the `.mf` extension and leading Metafont keywords such as `mode_setup;`
MIME type`text/plain`; `application/x-metafont` used informally by some TeX tools
Compiler`mf` program, invoked as `mf '\mode=localfont; input fontname'`; included in TeX Live, MiKTeX, and MacTeX
Compilation outputsA `.tfm` metric file (character widths, heights, kerns for TeX) and a `.gf` or `.pk` bitmap at the chosen device resolution
Resolution / mode parameterTarget device and DPI chosen at compile time via a mode name (e.g., `ljfour` = 600 dpi LaserJet); changing the mode regenerates the bitmap
Parametric design modelGlyph shapes defined by pen strokes and numeric variables; adjusting one parameter (e.g., `stem#`) consistently rescales all dependent glyphs
Constraint solvingThe Metafont interpreter solves systems of linear equations simultaneously to position points - shapes are stated as constraints, not absolute coordinates
Checksum pairingThe `mf` compiler embeds a checksum in the companion `.tfm` file binding it to the generated bitmap; the `.mf` source itself carries no checksum
Color supportMonochrome (1-bit) only - Metafont rasterizes glyphs as black-and-white bitmaps; no grayscale or color output
Typical file sizeA few KB to tens of KB; a complete typeface family consists of dozens of `.mf` files sharing a common base file
Base macro libraryComputer Modern uses `plain.mf` and `cm` base files; any `.mf` source may `input` shared macro files to inherit definitions
Active use caseComputer Modern and AMS typeface families (default TeX and LaTeX fonts) are distributed as `.mf` source and compiled on demand by TeX distributions
Successor formatMetaPost (`.mp`) extended the Metafont language to produce scalable PostScript/SVG vector output instead of bitmaps
Выпущен1979 (Metafont); rewritten Metafont84 (1984)
Последняя версияMetafont version 2.71828… (asymptotically approaching e; current since the 1990s)
Открыть стандартноеДа · без роялти
Спецификацияwww.tug.org

Конвертации MF

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами MF. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах MF.

Часто задаваемые вопросы

How do I open a .mf file?
Open it in any text editor to read the Metafont source. To actually build the font, compile it with the 'mf' program from a TeX distribution (TeX Live, MiKTeX, or MacTeX).
What is a Metafont (.mf) file?
It's a program written in Donald Knuth's Metafont language that describes a font by pen strokes and parameters. The 'mf' compiler turns it into TeX metrics (.tfm) and bitmaps (.gf/.pk).
Is a .mf file the same as MANIFEST.MF?
No. MANIFEST.MF is a Java JAR manifest (plain-text metadata inside a .jar). A Metafont .mf is a TeX font source. They share the extension but are unrelated - check the filename and content.
How do I compile a .mf into a usable font?
Run 'mf \mode=localfont; input yourfont' (or simply 'mf yourfont.mf') after installing TeX Live/MiKTeX. It outputs a .tfm and a resolution-specific .gf/.pk bitmap you then place where TeX looks for fonts.
Can I convert a Metafont .mf to TrueType/OpenType?
Not directly or cleanly. Tools like mftrace can trace Metafont bitmaps into outlines for FontForge, but it's an advanced, lossy workflow rather than a simple converter.

Ссылки

1TUG - Metafontwww.tug.org
2CTAN - Metafont packagewww.ctan.org

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

1.AQQAQQ Instant Messenger File
2.BCBitComet Incomplete Download File
3.CRDOWNLOADChrome Partial Download File
4.MDMarkdown Document
5.PARTPartial Download File
6.BINCD/DVD Disc Image (BIN/CUE)
7.EXEWindows Executable (Portable Executable)
8.RPMSGRestricted Permission Message
9.AVIFAV1 Image File Format (AVIF)
10.NOMEDIAAndroid No-Media Marker File

Похожие расширения

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z