3 ms·
> Text zoom is also disabled within <svg:text> elements, which leads to some trickiness here. Not sure I understand this. Is the author saying that if the user
by jancsika 9y ago
> Text zoom is also disabled within <svg:text> elements, which leads to some trickiness here.
Not sure I understand this. Is the author saying that if the user tries to zoom in, svg text won't change size?
- Manishearth 9y agoIf the user tries to text zoom. Yes, SVG text will not zoom if you text zoom. SVG is fundamentally a absolutely-position image, not a laid out document. The concept of text-only zoom makes sense for documents, but not for images, where the position of the text is far more important. (This won't affect `<img>` embedded SVG anyway, however it is possible to embed SVG directly within HTML via `<svg>`, which is where this matters.)
- jancsika 9y ago> If the user tries to text zoom. Ah, thanks for the clarification. I missed that part. That makes absolute sense. :) > The concept of text-only zoom makes sense for documents, but not for images, where the position of the text is far more important. > SVG is fundamentally a absolutely-position image, not a laid out document. svt text is a fundament of svg that is incompatible with absolute-positioning. The OS's font stack might render px-sized mono-spaced font text at width x, or it might render it at x+7. Edit: typo