[svgwg] Issue: Adding default values for hanging and mathematical baselines (#34) marked as i18n-tracker

xfq has just labeled an issue for https://github.com/w3c/svgwg as "i18n-tracker":

== Adding default values for hanging and mathematical baselines ==
Source: http://tavmjong.free.fr/SVG/TEXT_SYDNEY_2016/#Baselines (See 2.1.5)

It would be useful to suggest default values for the 'hanging' and 'mathematical' baselines if they cannot be extracted from the font (and are not otherwise clearly defined). Using the top of the 'em' box (as with Firefox) is clearly wrong for writing systems using a hanging baseline. CSS Inline does define a "synthesized" baseline for "hanging": 0.6em. (As referenced from the 'alphabetic' baseline?)

```
'alphabetic': reference.
'ideographic': bottom of em-box (descent).
'hanging': 0.6 em.
'mathematical': 0.8 ex height?
'central': defined as middle of em-box.
'middle': defined as half of ex-height'
```

The 'hanging' and 'mathematical' baselines could be measured from the font. One could measure the hanging baseline by measuring the ascent of various glyphs in the the Devanagari, Bengali, Gujarati, etc scripts. The math baseline could be found by finding the middle of the 'minus' character. 


See https://github.com/w3c/svgwg/issues/34

Received on Thursday, 21 May 2020 13:12:08 UTC