W3C home > Mailing lists > Public > www-svg@w3.org > September 2015

Re: Possible to resize text to max size within a box?

From: Mats Blakstad <mats.gbproject@gmail.com>
Date: Thu, 17 Sep 2015 11:21:25 +0200
Message-ID: <CAP=1PAUCrdkLcxbw9eNdD3qkMcrPjGdwOWqVWK1cG3pJ7BBcrg@mail.gmail.com>
To: David Dailey <ddailey@zoominternet.net>, Mats Blakstad <mats.gbproject@gmail.com>, www-svg@w3.org
2015-09-17 9:45 GMT+02:00 Cameron McCormack <cam@mcc.id.au>:

> lengthAdjust="spacingAndGlyphs" just applies a scale in one dimension.
> It shouldn’t be hard to extend that with another value that scales in
> both dimensions (although note that scaling the text as if it had a
> transform on it will not always get you the same result as scaling the
> font-size down, due to hinting at least).

Yeah, that is the point!

Like in the ling that David sent:
If the height is reduced the text simply get reduced height without
changing the width, so you get a really "flat" text that is not easy to
read and looks strange.

Is there a way to keep the font in normal scale (reduce/increase the font
size to make it fit optimal into a box)?

> --
> Cameron McCormack ≝ http://mcc.id.au/
Received on Thursday, 17 September 2015 09:21:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:55:02 UTC