[x3d-public] text size clarification

Andreas Plesch andreasplesch at gmail.com
Mon Aug 19 06:46:24 PDT 2019


https://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/text.html#f-Textsizeandspacingfields


shows how text is sized with the size field.

The example text does not have any letters which reach below the baseline,
such as g,j,p, or y, or underscore _. The figure implies that a spacing of
1 would mean that such letters overlap with the line of text below. But
this is in conflict with the assumption that as the default value a spacing
of 1 should give a readable display for most content.

So should the baseline rather be at the level of the underscore _ ?
Does a size of 1 mean the letter X is ca. 1 unit tall ?
Or does it mean that _X in combination is ca. 1 unit tall ?

Here is how dev. x3dom sizes letters. The square is a unit square, centered
at the origin:
https://raw.githack.com/x3dom/x3dom/master/test/regression-suite/test/cases/text/text.html

-Andreas
-- 
Andreas Plesch
Waltham, MA 02453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190819/4ba9a00a/attachment.html>


More information about the x3d-public mailing list