Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lnum and tnum features in SourceSans3? #236

Open
dr-scsi opened this issue Nov 30, 2021 · 2 comments
Open

lnum and tnum features in SourceSans3? #236

dr-scsi opened this issue Nov 30, 2021 · 2 comments

Comments

@dr-scsi
Copy link

dr-scsi commented Nov 30, 2021

Hi all,

I checked for the features provided by the latest SourceSans3 fonts (v3.046) with otfinfo and get this:

-> otfinfo -f SourceSans3-Regular.otf
aalt    Access All Alternates
c2sc    Small Capitals From Capitals
case    Case-Sensitive Forms
ccmp    Glyph Composition/Decomposition
cv01    Character Variants 1
cv02    Character Variants 2
cv03    Character Variants 3
cv04    Character Variants 4
cv05    Character Variants 5
cv06    Character Variants 6
cv07    <unknown feature>
cv08    <unknown feature>
cv09    <unknown feature>
cv10    <unknown feature>
cv11    <unknown feature>
cv12    <unknown feature>
cv13    <unknown feature>
cv14    <unknown feature>
cv15    <unknown feature>
cv16    <unknown feature>
cv17    <unknown feature>
cv18    <unknown feature>
cv19    <unknown feature>
dlig    Discretionary Ligatures
dnom    Denominators
frac    Fractions
hlig    Historical Ligatures
kern    Kerning
liga    Standard Ligatures
locl    Localized Forms
mark    Mark Positioning
mkmk    Mark to Mark Positioning
numr    Numerators
onum    Oldstyle Figures
ordn    Ordinals
pnum    Proportional Figures
salt    Stylistic Alternates
sinf    Scientific Inferiors
size    Optical Size
smcp    Small Capitals
ss01    Stylistic Set 1
ss02    Stylistic Set 2
ss03    Stylistic Set 3
ss04    Stylistic Set 4
ss05    Stylistic Set 5
ss06    Stylistic Set 6
ss07    Stylistic Set 7
ss08    Stylistic Set 8
ss09    Stylistic Set 9
ss10    Stylistic Set 10
subs    Subscript
sups    Superscript
titl    Titling
zero    Slashed Zero

I'm not an expert on this, but is it possible that lnum and tnum features are missing? This is a problem for applications relying on them (I stumbled over it by trying the fonts with lualatex and the fontspec package). The figure versions themselves are there.

@pauldhunt
Copy link
Contributor

the default figures are lining (lnum) and tabular (tnum) by default, so in order to access lining tabular figures simply don’t apply any figure styles.

@dr-scsi
Copy link
Author

dr-scsi commented Dec 1, 2021

Thanks for your response. Is it then possible to turn this question into a "Feature Request"? It would be helpful when one is writing a LaTeX document (compiled with lualatex and with the fontspec package) and want to change the fonts locally. Currently, one has to write code like this:

{%
  0123456789\\
  \addfontfeatures{Numbers=OldStyle}0123456789\\
  \addfontfeatures{Numbers=OldStyleOff}0123456789
}

where something like this feels more natural:

{%
  0123456789\\
  \addfontfeatures{Numbers=OldStyle}0123456789\\
  \addfontfeatures{Numbers=Lining}0123456789
}

The second version throws the following warning:

Package fontspec Warning: OpenType feature 'Numbers=Uppercase' (lnum) not
(fontspec)                available for font 'sourcesans3-regular' with script
(fontspec)                'CustomDefault' and language 'Default'.

which is of course true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants