fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

OSF in the SmallCaps font file

Open Mariusz-W opened this issue 3 years ago • 1 comments

I don’t see how fontspec handles a situation, common with older OpenType font families, when the Roman OldStyleFigures reside in the SmallCaps font file. I don’t find a word about it in the current fontspec documentation.

Something along the lines of :

SmallCapsFont = ⟨font name⟩ or SwashFont = ⟨font name⟩

would be welcome.

The issue is important for me as there are many such font families available, some very refined.

Mariusz-W avatar Nov 09 '22 11:11 Mariusz-W

I prepared a tutorial in which I provide a temporary solution to the problem that a user of X∃LATEX and fontspec is facing when the desired set of glyphs for digits are located in external expert or SmallCaps font files.

Mariusz-W avatar Nov 18 '22 09:11 Mariusz-W

Unfortunately this is not possible unless you use luaotfload to create custom virtual fonts. There isn't a standard or convenient mechanism in XeTeX or LuaTeX to switch fonts for certain characters for fontspec to provide an interface to.

wspr avatar May 11 '24 05:05 wspr