From 658cc5607c122f847a4ddf4ddb9b0a9528eaa155 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 15 Nov 2012 11:18:14 -0500 Subject: [PATCH] More methods --- NOTES.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/NOTES.md b/NOTES.md index b0d0b777b..04e83b344 100644 --- a/NOTES.md +++ b/NOTES.md @@ -155,3 +155,12 @@ triangle character if available. This has a few concerns: * performance of textPath is known to suck in some cases. For simple cases, it is fine * can we be absolutely sure about direction of text? * glyphs need to be available. are webfonts svg-okay? + +Or more importantly, we need to calculate the pixel length of a linestring, +calculate the width of a glyph, and do the necessary math so that it fills enough +of the line without overflowing. + +See: + +* [getComputedTextLength](http://www.w3.org/TR/SVG/text.html#__svg__SVGTextContentElement__getComputedTextLength) +* [getTotalLength](http://www.w3.org/TR/SVG/paths.html#__svg__SVGPathElement__getTotalLength)