Last Comment Bug 552290 - (stretchy-diagonal) Stretching in diagonal directions
(stretchy-diagonal)
: Stretching in diagonal directions
Status: NEW
:
Product: Core
Classification: Components
Component: MathML (show other bugs)
: Trunk
: All All
: P5 normal with 2 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Anthony Jones (:kentuckyfriedtakahe, :k17e)
Mentors:
Depends on: scale-stretchy
Blocks: mathml-2
  Show dependency treegraph
 
Reported: 2010-03-14 08:35 PDT by Frédéric Wang (:fredw)
Modified: 2012-12-01 13:31 PST (History)
2 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
MathML Operator dictionary: add entries for diagonal arrows (3.85 KB, patch)
2011-04-15 10:24 PDT, Frédéric Wang (:fredw)
no flags Details | Diff | Splinter Review

Description Frédéric Wang (:fredw) 2010-03-14 08:35:00 PDT
In the current implementation, Gecko can only stretch characters in vertical/horizontal directions. Some symbols - at least diagonal arrows - should be stretchable in "diagonal" directions. Note that the MathML spec does not distinguish these directions from "vertical+horizontal", so we should add them in our private dictionary. Here is the idea:

- extend the work of bug 524275 to add new directions "updiagonal", "downdiagonal" in the dictionary.

- extend the work of bug 414277 to be able to use a rotation as a transform. To draw the diagonal arrows, we draw horizontal arrows with the length of the diagonal (stretched with the "parts of glyph" techniques + possibly a scale transform) and rotate using the slope of the expected diagonal as angle.
Comment 1 Frédéric Wang (:fredw) 2011-04-15 10:24:17 PDT
Created attachment 526296 [details] [diff] [review]
MathML Operator dictionary: add entries for diagonal arrows

Note You need to log in before you can comment on or make changes to this bug.