Skip to content

Small Capitals and SizeFeatures #470

@KuznetsovAleksey

Description

@KuznetsovAleksey

Description

SizeFeatures of SmallCapsFont are directly bound to SizeFeatures of UprightFont.

Check/indicate

  • Relevant for XeTeX
  • Relevant for LuaTeX
  • Issue tracker has been searched for similar issues?
  • Links to <tex.stackexchange.com> discussion if appropriate

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions