latex3 / fontspec

Font selection in LaTeX for XeTeX and LuaTeX
http://latex3.github.io/fontspec/
LaTeX Project Public License v1.3c
277 stars 34 forks source link

Small Capitals and SizeFeatures #470

Open KuznetsovAleksey opened 2 years ago

KuznetsovAleksey commented 2 years ago

Description

SizeFeatures of SmallCapsFont are directly bound to SizeFeatures of UprightFont.

Check/indicate

Minimal example demonstrating the issue

I set different SizeFeatures for different fonts to tune width of letters of small and large sizes in cm-unicode fonts designed in a single size.

For example,

UprightFont= cmunrm,
 SizeFeatures={%
        {Size=-6,  FakeStretch= ..., LetterSpace= .... },
         .....
        {Size=17-, .... } 
    },
FontFace={m}{it}{ Font= cmunti, 
  SizeFeatures={%
        ....

Fonts of all shapes and series are correctly tuned in such a manner, excepting the medium SmallCapsFont font.

Neither
    FontFace={m}{sc}{ Font= cmunrm, Letters=SmallCaps,
      SizeFeatures={....
nor 
    SmallCapsFont= cmunrm,
    SmallCapsFeatures={ Letters=SmallCaps,
      SizeFeatures={....
work correctly. 
SizeFeatures of the UprightFont are used in any case.

At the same, all sizes are correctly set for bold fonts and ssc-shape
  FontFace={m}{ssc}{ ... 
  FontFace={b}{n}{ ... 
  FontFace={b}{sc}{ ... 
  FontFace={b}{ssc}{ ... 

Is it possible to "split" SizeFeatures of Upright and SmallCaps fonts?

Further details

The settings are made via XXX.fonspec files.