跳转到内容

File:Metafont-example-output.svg

页面内容不支持其他语言。
這個文件來自維基共享資源
维基百科,自由的百科全书
    原始文件 (SVG文件,尺寸为568 × 247像素,文件大小:3 KB)


    摘要

    描述
    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 main.tex

    \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 main
    
    The end result is the file main.svg
    日期
    来源 自己的作品
    作者 ngoclong19

    许可协议

    我,本作品著作权人,特此采用以下许可协议发表本作品:
    Creative Commons CC-Zero 本作品采用知识共享CC0 1.0 通用公有领域贡献许可协议授权。
    采用本宣告发表本作品的人,已在法律允许的范围内,通过在全世界放弃其对本作品拥有的著作权法规定的所有权利(包括所有相关权利),将本作品贡献至公有领域。您可以复制、修改、传播和表演本作品,将其用于商业目的,无需要求授权。


    说明

    添加一行文字以描述该文件所表现的内容

    此文件中描述的项目

    描繪內容

    17 7 2015

    2,696 字节

    image/svg+xml

    a7d1dbbd03d6fd2ff574c7deaa808bf20d0832b8

    文件历史

    点击某个日期/时间查看对应时刻的文件。

    日期/时间缩⁠略⁠图大小用户备注
    当前2015年7月17日 (五) 03:202015年7月17日 (五) 03:20版本的缩略图568 × 247​(3 KB)Ngoclong19User created page with UploadWizard

    以下页面使用本文件:

    全域文件用途

    以下其他wiki使用此文件:

    元数据