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

Add font-feature-settings CSS property #2155

Open
tomconroy opened this issue Jan 27, 2023 · 0 comments
Open

Add font-feature-settings CSS property #2155

tomconroy opened this issue Jan 27, 2023 · 0 comments

Comments

@tomconroy
Copy link

Hi, nice work on this project!

The fontkit project supports supplying a list of opentype features: https://github.com/foliojs/fontkit#fontlayoutstring-features----

This option is equivalent to the CSS property font-feature-settings so should be straightforward to translate and included in the font.layout() calls.

This would unlock many powerful features of fonts, including e.g. tabular numerals (useful for displaying numbers in a tabular/grid layout for e.g. invoices, reports, etc), as well as things like fractions, ligatures, smallcaps, stylistic sets, and many more. This would also solve #1664 via e.g. font-feature-settings: 'tnum' 1;

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

1 participant