kennethormandy/normalize-opentype.css

Use tabular numerals for phone numbers?

Open

#11 创建于 2014年7月24日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)HTML (797 star) (29 fork)batch import
enhancementhelp wantedquestion

描述

I realised it would be possible to use different numeral sets for phone numbers (and possibly other things) in certain context. For example, in a paragraph you might want a phone number with old-style numerals:

screen shot 2014-07-24 at 3 44 32

But in most other situations you’d probably prefer tabular numerals:

screen shot 2014-07-24 at 3 45 47

I’m undecided if this within the scope of this reset. Probably my biggest deterrent is that it would use a less-than-popular selector:

a[href^="tel:"] {
  font-feature-settings: "tnum" 1, "pnum" 1, "kern" 1; /* Etc. */
}

This particular feature might be better saved for a “Going beyond Normalize-OpenType.css” set of examples, which could include the features you need to have an opinion on to use, like stylistic sets. I’m pretty open to opinions on it.

贡献者指南

Use tabular numerals for phone numbers? · kennethormandy/normalize-opentype.css#11 | Good First Issue