![]() |
The font selection system | ![]() |
In TeXmacs, the global document font can be specified using Document\(\rightarrow\)Font. It is also possible to locally use another font using Format\(\rightarrow\)Font. When the preference Complex actions (in the tab General of the preferences) is set to popup windows, both open the TeXmacs font browser; when it is set to menus, Document\(\rightarrow\)Font is a submenu, and Format lists the fonts itself. Fonts have three main characteristics:
Fonts are grouped together into families with a similar design.
Inside the same font family, individual fonts have different shapes, such as bold, italic, small capitals, etc.
The font size in points.
The user may directly specify these three characteristics in the font browser, which also displays some sample text for the selected font.
The font browser also provides a way to quickly select fonts based on desirable font properties. For instance, by filtering on a “bold weight” and “sans serif”, one may find a bold sans serif font which mixes as well as possible with the main font. TeXmacs allows you to filter on the following criteria:
The font weight corresponds to the “thickness” of the font:
| Thin | Light | Medium | Bold | Black |
The font slant determines the angle of the font:
| Normal | Italic | Oblique |
This property determines the horizontal width for a fixed vertical height:
| Condensed | Unextended | Wide |
This property determines how lowercase letters are capitalized:
| Mixed | Small capitals |
This feature corresponds to the projecting features called “serifs” at the end of strokes:
| Serif | Sans Serif |
This feature corresponds to the horizontal spacing between characters:
| Proportional | Monospaced |
This property can be used to imitate specific “writing devices”:
| Typewriter | Digital | Pen | Art pen | Chalk | Marker |
Various other font features:
| Ancient | Attached | Calligraphic | Comic | Decorative |
| Distorted | Gothic | Handwritten | Initials | Medieval |
| Miscellaneous | Outline | Retro | Scifi | Title |
Each of the above properties really constitutes a hint on how the kind of font which should be used. If no suitable font can be found on your particular system, then setting these properties may have no effect. Whenever you apply one or more filters, the font browser indicates which fonts match the selected properties. It also indicates the closest match for the current font in use. When pressing the Ok button without selecting any particular matching font, then the selected font properties will be inserted as TeXmacs markup and used as rendering hints. In that case, the rendering may change when selecting another global document font (for instance).
It should be noticed that TeXmacs comes with a limited number of preinstalled fonts: the fonts prefixed by “TeXmacs”, the Stix fonts, Linux Libertine and Biolinum, OpenDyslexic, and the text and mathematical fonts shown in the section The fonts which come with TeXmacs, among them Latin Modern, TeX Gyre, Libertinus and Fira. Documents which only use these fonts will be rendered the same on different systems (assuming the same version of TeXmacs). When your documents contain other fonts as well, then these fonts may be replaced by closest matches when opening your document under a different operating system.
Formulas are set in the mathematical font which goes with the main font of the document. The section Mathematical fonts explains how, shows every mathematical font which comes with TeXmacs with a sample, and lists the ones you may install.
The chapter Fonts, from selection to glyph of the reference guide explains what happens behind this dialog: which variables a font selection sets, how a character is turned into a glyph, which files decide what a font name means, and how the virtual fonts draw the symbols that no font provides.