GNU TeXmacsUser manualReferenceAboutEnglish·Français·Deutsch·Español·Italiano·Português·Polski·中文
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:

Family

Fonts are grouped together into families with a similar design.

Shape

Inside the same font family, individual fonts have different shapes, such as bold, italic, small capitals, etc.

Size

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:

Weight

The font weight corresponds to the “thickness” of the font:

Thin Light Medium Bold Black
Slant

The font slant determines the angle of the font:

Normal Italic Oblique
Stretch

This property determines the horizontal width for a fixed vertical height:

Condensed Unextended Wide
Case

This property determines how lowercase letters are capitalized:

Mixed Small capitals
Serif

This feature corresponds to the projecting features called “serifs” at the end of strokes:

Serif Sans Serif
Spacing

This feature corresponds to the horizontal spacing between characters:

Proportional Monospaced
Device

This property can be used to imitate specific “writing devices”:

Print Typewriter Digital Pen Art pen Chalk Marker
Category

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.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".