stipub / stixfonts

OpenType Unicode fonts for Scientific, Technical, and Mathematical texts
SIL Open Font License 1.1
730 stars 41 forks source link

Make math variants available as character variants #149

Closed kevinbarabash closed 3 years ago

kevinbarabash commented 4 years ago

There doesn't seem to be a way to access math variants of characters like square root and various delimiters when using STIX in the browser. Since browsers do support character variants maybe those could be used to support the math variants. The current workaround for this issue is repackaging the math variants into separate fonts based on size.

tiroj commented 3 years ago

Hmm. This sounds like a lot of work for what will probably only be a partially useful workaround. Better support for math layout in browsers is surely the long term solution.

Closing this for now, but will reconsider if STI Pub considers worth exploring.

kevinbarabash commented 3 years ago

Browser support for variable fonts is pretty good now (https://caniuse.com/variable-fonts) so that could be another option.

tiroj commented 3 years ago

The STIX Two Text fonts are now built as variable fonts with a weight axis. There’s been some talk about using variable technology for growing delimiters and optically tuning ssty/ssty2 scaling variants*, but nothing concrete yet. Having a variable axis that only affects a subset of characters in a font is technically possible, but it isn’t something that font tools really handle well.