summaryrefslogtreecommitdiff
path: root/src/gfx_layout.h
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-08-06 17:35:11 +0000
committermichi_cc <michi_cc@openttd.org>2013-08-06 17:35:11 +0000
commitbd02761b554cf9b5ddbca05f75aba7dcc4ecb4e5 (patch)
treeccdce16bbd7a0e297a6cfcc6093994ae9671d5dc /src/gfx_layout.h
parent2770a24f9f662c702ed6f3b469950d0e65d8423a (diff)
downloadopenttd-bd02761b554cf9b5ddbca05f75aba7dcc4ecb4e5.tar.xz
(svn r25696) -Fix (r25651): Missing function in the non-ICU paragraph layouter.
Diffstat (limited to 'src/gfx_layout.h')
-rw-r--r--src/gfx_layout.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gfx_layout.h b/src/gfx_layout.h
index b4f9afdc6..fb8866cc8 100644
--- a/src/gfx_layout.h
+++ b/src/gfx_layout.h
@@ -125,6 +125,7 @@ public:
Font *font; ///< The font used to layout these.
GlyphID *glyphs; ///< The glyphs we're drawing.
float *positions; ///< The positions of the glyphs.
+ int *glyph_to_char; ///< The char index of the glyphs.
int glyph_count; ///< The number of glyphs.
public:
@@ -135,6 +136,7 @@ public:
const GlyphID *getGlyphs() const;
float *getPositions() const;
int getLeading() const;
+ const int *getGlyphToCharMap() const;
};
/** A single line worth of VisualRuns. */