Différences
Ci-dessous, les différences entre deux révisions de la page.
| Révision précédente | |||
| — | 5_fichiers:fontes:utiliser_metafont [2023/11/02 16:13] (Version actuelle) – Début de traduction en français. jejust | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== Getting MetaFont to do what you want ====== | ||
| + | |||
| + | |||
| + | MetaFont vous permet de créer vos propres polices, | ||
| + | mais la plupart des utilisateurs de TeX n' | ||
| + | En effet, les systèmes (La)TeX modernes contiennent très peu de polices MetaFont importantes, | ||
| + | et lorsque l' | ||
| + | pour générer les polices « à la volée ». | ||
| + | |||
| + | Mais si vous avez des besoins particuliers que le système ne satisfait pas, | ||
| + | vous avez intérêt à connaître MetaFont plus en détail. | ||
| + | MetaFont, contrairement à TeX, nécessite une personnalisation pour chaque périphérique de sortie: | ||
| + | cette personnalisation est traditionnellement conservée dans un « mode » associé au périphérique. | ||
| + | Les modes sont généralement définis à l'aide de la convention '' | ||
| + | (voir [[1_generalites: | ||
| + | Votre distribution est censée fournir un fichier, généralement appelé '' | ||
| + | contenant tous les '' | ||
| + | la collection de modes de Karl Berry ('' | ||
| + | (elle peut être utilisée comme '' | ||
| + | Les paramètres des nouveaux périphériques de sortie sont ajoutés à '' | ||
| + | |||
| + | Now create a '' | ||
| + | '' | ||
| + | |||
| + | < | ||
| + | % mf -ini | ||
| + | This is METAFONT... | ||
| + | **plain # you type plain | ||
| + | (output) | ||
| + | *input local # you type this | ||
| + | (output) | ||
| + | *dump # you type this | ||
| + | Beginning to dump on file plain... | ||
| + | (output) | ||
| + | </ | ||
| + | This will create a base file named '' | ||
| + | similar; for example, it will be '' | ||
| + | systems). | ||
| + | your system, and run '' | ||
| + | |||
| + | Now you need to make sure MetaFont loads this new base when it starts up. If | ||
| + | MetaFont loads the '' | ||
| + | ready to go. Under Unix (using the default TeX Live (and earlier) | ||
| + | distributions this does indeed happen, but we could for instance | ||
| + | define a command '' | ||
| + | which executes '' | ||
| + | style '' | ||
| + | | ||
| + | The usual way to create a font with MetaFont (with an appropriate base | ||
| + | file loaded) is to start MetaFont' | ||
| + | <code latex> | ||
| + | \mode=< | ||
| + | </ | ||
| + | in response to the '' | ||
| + | ''< | ||
| + | " | ||
| + | ''< | ||
| + | The ''< | ||
| + | " | ||
| + | multiply a base size by '' | ||
| + | '' | ||
| + | '' | ||
| + | If '' | ||
| + | is '' | ||
| + | '' | ||
| + | printer you might type | ||
| + | |||
| + | <code latex> | ||
| + | mf \mode=epson; | ||
| + | </ | ||
| + | Note that under Unix the '' | ||
| + | characters must usually be quoted or escaped, so this would typically | ||
| + | look something like | ||
| + | |||
| + | <code latex> | ||
| + | mf " | ||
| + | </ | ||
| + | If you need a special mode that isn't in the base, you can put its | ||
| + | commands in a file (e.g., '' | ||
| + | fly with the '' | ||
| + | '' | ||
| + | |||
| + | <code latex> | ||
| + | % This is ln03.mf as of 1990/02/27 | ||
| + | % mode_def courtesy of John Sauter | ||
| + | proofing: | ||
| + | fontmaking: | ||
| + | tracingtitles: | ||
| + | pixels// | ||
| + | blacker: | ||
| + | fillin: | ||
| + | o_correction: | ||
| + | </ | ||
| + | (note the absence of the '' | ||
| + | commands), you would type | ||
| + | |||
| + | <code latex> | ||
| + | mf \smode=" | ||
| + | </ | ||
| + | This technique isn't one you should regularly use, but it may | ||
| + | prove useful if you acquire a new printer and want to experiment with | ||
| + | parameters, or for some other reason are regularly editing the | ||
| + | parameters you're using. | ||
| + | parameters, you should use them to rebuild the base file that you use. | ||
| + | |||
| + | Other sources of help are discussed in our list of | ||
| + | [[1_generalites: | ||
| + | |||
| + | |||
| + | ----- | ||
| + | //Source:// [[faquk> | ||
| + | |||
| + | {{htmlmetatags> | ||
| + | metatag-og: | ||
| + | metatag-og: | ||
| + | }} | ||

