Am 26.02.2026 um 20:23 schrieb Tomáš Hála:
Hi all,

the MWE below produces two pages with different kernings b-o and o-w.
(I have observed the same with \ss\it but not with \tf\bi or \tf\it.)

\tf and \ss are doing two different things, \tf is the switch to the switch to the upright alternative in a font style while \ss switches to the sans serif style.

Font alternatives: \tf, \it, \sl, \bf, \bi and \bs

Font styles: \rm, \ss and \tt

Viewed by three viewers. As evince and pdffonts report, only one font 
(LMSans10-BoldOblique) was loaded.
(All lmsans10-boldoblique.otf files on my computer since 2022 are the same.)

I cannot figure out why these two snippets give different result.
Could someone please explain? Or is it just a display/eye issue?

Best,

Tomáš

%%%%%%%%%%%%%%%%%%%%%%%%
% Tested on:
%   TL2025
%   ConTeXt ver: 2025.11.24 17:55
%   ConTeXt ver: 2024.06.21 23:45 LMTX (at c-o-w)
% Viewed by: xpdf, evince, mupdf
%%%%%%%%%%%%%%%%%%%%%%%%

\definefontfamily
   [mainface]

You're setting a font without specifying the style or font name.

Because no style has been set the default style "rm" is used and because no font has been set nothing can be found, which results in the fallback selection of the "modern" typeface.

What you get here is the same as the following typeface setting:

\definetypeface [mainface] [rm] [serif] [modern] [default]

\starttext
   \startTEXpage[offset=3dd]
      \switchtobodyfont[modern,1cc]
      \ss\bi bowling
   \stopTEXpage
\page
   \startTEXpage[offset=3dd]
     \switchtobodyfont[mainface,1cc]
     \ss\bi bowling

You're switching to the sans serif style which hasn't been defined in your custom "mainface" typeface where only a serif style has been set.

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to