Mercurial > love-experiments
diff src/modules/graphics/Graphics.cpp @ 1105:1bd1670a04e1
Close issue #408: printf-justify alignment.
Add letter_spacing argument to Font::print(). Might be worth to expose to Lua
at some point. Justify alignment may result in mushy/blurred glyphs.
| author | vrld <vrld@vrld.org> |
|---|---|
| date | Sun, 08 Jul 2012 13:37:09 +0200 |
| parents | 86a44f2bc38f |
| children | 4296fccb2da4 |
line wrap: on
line diff
--- a/src/modules/graphics/Graphics.cpp Thu Jul 05 16:15:38 2012 +0200 +++ b/src/modules/graphics/Graphics.cpp Sun Jul 08 13:37:09 2012 +0200 @@ -112,6 +112,7 @@ { "left", Graphics::ALIGN_LEFT }, { "right", Graphics::ALIGN_RIGHT }, { "center", Graphics::ALIGN_CENTER }, + { "justify", Graphics::ALIGN_JUSTIFY }, }; StringMap<Graphics::AlignMode, Graphics::ALIGN_MAX_ENUM> Graphics::alignModes(Graphics::alignModeEntries, sizeof(Graphics::alignModeEntries));
