[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parameters in metafont files
From: |
Carl Sorensen |
Subject: |
Re: parameters in metafont files |
Date: |
Tue, 7 Jun 2011 16:05:56 -0600 |
On 6/1/11 9:39 AM, "Janek Warchoł" <address@hidden> wrote:
> Hi again :)
>
> Congrats on 0 criticals!
>
> I have a question about parameters in metafont files: i want to create
> something similar to mf/out/feta20.otf-table, but i don't understand how it's
> done (i tried to find "bbox" and "attachment" in mf files or
> scripts/build/gen-emmentaler-scripts.py, but there are no results). I also
> tried adding
> autometric_parameter ("someBogusName", someValue);
> inside mf code, but there were no results.
> Here is roughly what i want to achieve:
> add a magical command to feta-flags.mf
>
> fet_beginchar ("8th Flag (up)", "u3");
> [...] % flags.u3 definition
> magical_command (arbitraryRealValueChosenByMe);
> fet_endchar;
>
> fet_beginchar ("16th Flag (up)", "u4");
> [...] % flags.u4 definition
> magical_command (anotherArbitraryRealValueChosenByMe);
> fet_endchar;
>
> [...]
>
> and have it output a flags.otf-table file looking like this
>
> (flags .
> (u .
> ((3 . (arbitraryRealValueChosenByMe))
> (4 . (anotherArbitraryRealValueChosenByMe))
> [...] ))
> .
> (d .
> [...] )))
>
> Please help!
After looking more at this, it appears that the .otf-table files are created
by parsing the log files created during font creation. See
scripts/build/mf-to-table.py
So this means that your magic command would need to emit a keyword and a
real value to the log file, and mf-to-table.py would need to be modified to
read the keyword and the value and put it in the table file.
HTH,
Carl
> Janek
- parameters in metafont files, Janek Warchoł, 2011/06/01
- Re: parameters in metafont files, Carl Sorensen, 2011/06/07
- Re: parameters in metafont files,
Carl Sorensen <=
- Re: parameters in metafont files, Janek Warchoł, 2011/06/09
- Re: parameters in metafont files, Carl Sorensen, 2011/06/09
- Re: parameters in metafont files, Janek Warchoł, 2011/06/09
- Re: parameters in metafont files, Carl Sorensen, 2011/06/09
- Re: parameters in metafont files, Janek Warchoł, 2011/06/10
- Re: parameters in metafont files, Carl Sorensen, 2011/06/10
- Re: parameters in metafont files, Janek Warchoł, 2011/06/10
- Re: parameters in metafont files, Carl Sorensen, 2011/06/10
- Re: parameters in metafont files, Janek Warchoł, 2011/06/12
- Message not available
- Message not available
- Re: parameters in metafont files, Janek Warchoł, 2011/06/10