-
Notifications
You must be signed in to change notification settings - Fork 14
Contribute a MF to Metaflop
MM edited this page Feb 29, 2016
·
3 revisions
Our METAFONTs have a specific structure so they are compatible with the Metaflop Modulator. To contribute a METAFONT following requirements needs to be fulfilled:
- Create the required files structure, have a look at e.g. https://github.com/metaflop/metaflop-font-bespoke and https://github.com/metaflop/metaflop-font-fetamont.
- Create a file font.mf in the top level directory. This is the starting point which will be invoked.
- Map all the variables that should be exposed in the UI as slider or a dropdown. See https://github.com/metaflop/metaflop-www/blob/master/app/lib/font_parameters.rb#L47-L79 for reference which variable names you can use.
- The variables that should not the visible as adjustable parameters in the UI need to be postfixed with @hidden (https://github.com/metaflop/metaflop-font-fetamont/blob/master/font.mf#L14)
- Define the adjustable range of the parameter as $ <lower_bound> / <upper_bound>, e.g. $ 3 / 6 (https://github.com/metaflop/metaflop-font-fetamont/blob/master/font.mf#L16)
- Optional: Put all your glyph files in a sub directory "glyphs". You can there further create sub directories as you like.
- Optional: Create a top level glyphs.mf that references all the other glyph files. This way you only need to include the glyphs.mf in your font.mf.
- Create a github repository, which we then can fork and include. This is optional, but is the easiest way. If you are not familiar with git/github get a short introduction for designers here.
- Tell us about it (e.g. in a tweet, through a github issue)