You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently text is aligned with respect to its actual bounding box; instead, it ought to be aligned with respect to a box with left and right edges given by the bounding box and top and bottom edges given by the ascent and descent line of the font. (See http://cairographics.org/tutorial/#L1understandingtext). The current approach means that different text elements placed next to each other are not vertically aligned. For example, this looks really bad:
{{{
letterBlock c = square # scale 1.5 <> text [c]
example = hcat $ map letterBlock ['a'..'z']
}}}
Also, the code for accomplishing this ought to be factored out of the cairo backend into diagrams-lib so other backends can make use of it.
The text was updated successfully, but these errors were encountered:
(Imported from http://code.google.com/p/diagrams/issues/detail?id=33. Original issue from byor...@gmail.com on June 8, 2011, 05:14:26 PM UTC)
Currently text is aligned with respect to its actual bounding box; instead, it ought to be aligned with respect to a box with left and right edges given by the bounding box and top and bottom edges given by the ascent and descent line of the font. (See
http://cairographics.org/tutorial/#L1understandingtext). The current approach means that different text elements placed next to each other are not vertically aligned. For example, this looks really bad:
{{{
letterBlock c = square # scale 1.5 <> text [c]
example = hcat $ map letterBlock ['a'..'z']
}}}
Also, the code for accomplishing this ought to be factored out of the cairo backend into diagrams-lib so other backends can make use of it.
The text was updated successfully, but these errors were encountered: