[metapost] Metafont: editing CM source files

Rodolfo Medina rodolfo.medina at gmail.com
Sun Apr 8 22:55:57 CEST 2007

Rodolfo Medina wrote:

> I wanted to edit cmr12.mf to see what happens.
> So I copied the original file into a work directory, changed its name and ran
> metafont on it:
>  $ mf my-cmr12.mf
>  $ gftopk my-cmr12.2602gf
> . Then, in my-file.tex I put:
> \font\myfont=my-cmr12
> \myfont
> Hallo
> \vfill\eject\end
> , and then I do:
>  $ tex my-file
> . Now, the changes I do in my-cmr12.mf seem to produce no effect at all in the
> my-file.dvi output file.  For example, if I change the 12pt size into 50pt, in
> dvi file the characters are always 12pt small.
> Can anyone explain why?  What am I missing?
> Please pardon the basicness of the question.

Dan Luecking <luecking at uark.edu> writes:

> [...]
> A typical
> edit/view cycle is:
> 1. mf \mode:=localfont; input my-cmr12
> 2. gftopk my-cmf12.600gf
> 3. tex testfile
> 4. view texfile

I did so, but nothing seems to happen: editing the .mf file produces no effect
in the final dvi file.


> While testing is going on, always make sure a new tfm file
> and new pk file have been created by _your_ commands. If you
> skip a step, an automatic mktex* script might create a tfm or
> pk file for you, and move it to some other location. In that
> case, those might get re-used next time instead of your newly
> edited version.
> What you need to do now is search texmf-var (or wherever newly
> created files are placed by mktex*) and delete occurances of
> my-cmr12.*. Then follow the cycle above.

I searched for other my-cmr12.* files but there are not except in the work
directory I used for my tests.  I deleted them and repeated the test with no
result either.


More information about the metapost mailing list