Add GlyphPos for a visual run glyph and its position
commit0d2150483270880b467a766aa447e60bd5c04810
authorcirdan <cirdansw@gmail.com>
Fri, 3 Mar 2017 17:07:53 +0000 (3 18:07 +0100)
committercirdan <cirdansw@gmail.com>
Fri, 3 Mar 2017 17:07:53 +0000 (3 18:07 +0100)
treec633f69baf9ada64cb23820f2b116f3341cc8c8f
parentee25b48036df7e51d41f8f0184a06086ac4f36bc
Add GlyphPos for a visual run glyph and its position

Add a new struct ParagraphLayouter::GlyphPos to hold a
glyph id and its position in a visual run and a method
ParagraphLayouter::VisualRun::GetGlyphPos to retrieve the
GlyphPos for a given glyph index in a visual run, and use
them from DrawLayoutLine.
src/gfx.cpp
src/gfx_layout.h