- From: bulia byak <buliabyak@gmail.com>
- Date: Sun, 17 Apr 2005 16:23:22 -0300
- To: Thomas DeWeese <Thomas.DeWeese@kodak.com>
- Cc: Jon Ferraiolo <jon.ferraiolo@adobe.com>, Chris Lilley <chris@w3.org>, www-svg@w3.org
Thomas, > A feature that would be of great interest in _many_ use cases for > flowed text in SVG would be to allow a range of font-sizes that the > text could use. An implementation would start with the largest > font-size if the text fit all is well and good. If the text doesn't > fit it adjusts the font-size down until it does or it hits a user > defined min font-size. You could even leave font-size alone and > just add a "min-font-size" property that would default to > 'current-font-size' - which would effectively inhibit this behavior > but using something like: 'font-size="24" min-font-size="12"' would > allow for the text to vary from 12 to 24 such that it fits the > region. Hmm, actually changing font size is not the most common strategy when fitting text into a box. Usually, at first one tries to achieve that by changing letterspacing and/or word spacing, then by line spacing, sometimes even by squeezing the font horizontally. Changing the font size is usually one of the last resorts, only if the space deficit is large enough. So, if such a feature is indeed added, I think it might be as simple as an attribute which _requires_ that the given text fits the given container. The specific way(s) of satisfying this requirement may be left to the discretion of the SVG renderer. -- bulia byak Inkscape. Draw Freely. http:://www.inkscape.org
Received on Sunday, 17 April 2005 19:23:24 UTC