Difference between revisions of "Command/definefont"

From Wiki
Jump to navigation Jump to search
(Cleanup, more links)
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] (autogenerated)] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>definefont</syntax>
 
<syntax>definefont</syntax>
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
  <tr>
 
    <td colspan="2" class="cmd">\definefont<span class="first" >[...]</span><span class="second" >[...]</span></td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[...]</td>
 
    <td>file </td>
 
  </tr>
 
  <tr valign="top" class="third">
 
    <td class="cmd">[...]</td>
 
    <td>text (optional) </td>
 
  </tr>
 
</table>
 
  
  
 
== Description ==  
 
== Description ==  
This macro defines a font with the same name as the first argument and you can use its name
+
This macro defines a font with the same name as the first argument and you can use its name as an identifier to select that font.
as an identifier to select that font. The second argument works in the same way as the second
+
 
argument to \definefontsynonym: you can use either a font synonym or a real font. There
+
The second argument works in the same way as the second argument to \definefontsynonym: you can use either a font synonym or a real font.
is an optional third argument that can be either a bare number like 1.5 , or a named setup. In case of a bare number, that is a local setting for the interline space. In case
+
 
of a setup, that setup can do whatever it wants.
+
There is an optional third argument that can be either a bare number like 1.5 or a named setup.
 +
In case of a bare number, that is a local setting for the interline space. In case of a setup, that setup can do whatever it wants.
  
 
== Example ==
 
== Example ==
Line 42: Line 25:
 
== See also ==
 
== See also ==
 
<!-- something like {{cmd|goto}} -->
 
<!-- something like {{cmd|goto}} -->
 +
* {{cmd|definedfont}}
 +
* {{cmd|definefontfamily}}
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 08:17, 20 November 2019

\definefont

Syntax (autogenerated)

\definefont[...][...][...=...,...]
[...]name
[...]font
...=...,...inherits from \setupinterlinespace


\definefont[...][...][...]
[...]name
[...]font
[...]name



Description

This macro defines a font with the same name as the first argument and you can use its name as an identifier to select that font.

The second argument works in the same way as the second argument to \definefontsynonym: you can use either a font synonym or a real font.

There is an optional third argument that can be either a bare number like 1.5 or a named setup. In case of a bare number, that is a local setting for the interline space. In case of a setup, that setup can do whatever it wants.

Example

\loadmapfile [koeieletters]
\definefont [ContextLogo] [koeielogos at 72pt]
\ContextLogo \char 2

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: