File:Metafont-example-output.svg
Original file (SVG file, nominally 568 × 247 pixels, file size: 3 KB)
Captions
Summary
editDescriptionMetafont-example-output.svg |
English: To create the image, put the following code in mfont.mf (from w:Metafont's Example section)
mode_setup;
% Define a beanlike shape for the character B
beginchar("B",11pt#,11pt#,0);
% Setup coordinates as an equation system
y1=y2=y3=0;
y4=y5=y6=h;
x1=x4=0;
x2=x5=w;
x3=x6=2*w;
% Define pen
pickup pencircle xscaled 0.2w yscaled 0.04w rotated 45;
% Draw the character curve
draw z1..z3..z6{z2-z6}..z5..{z4-z2}z4..cycle;
endchar;
end
and the following code in \documentclass{article}
\newfont{\obrfont}{mfont}
\begin{document}
\pagestyle{empty}
\begin{center}
{\obrfont B}
\end{center}
\end{document}
Put those two files in the same directory, compile with these commands: $ latex main $ dvisvgm -n1 -e -Z0.1 mainThe end result is the file main.svg |
Date | |
Source | Own work |
Author | ngoclong19 |
Licensing
editThis file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
The categories of this image need checking. You can do so here.
|
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 03:20, 17 July 2015 | 568 × 247 (3 KB) | Ngoclong19 (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 454.488pt |
---|---|
Height | 197.212pt |