2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file gfx_layout_fallback.h Functions related to laying out the texts as fallback. */
10 #ifndef GFX_LAYOUT_FALLBACK_H
11 #define GFX_LAYOUT_FALLBACK_H
13 #include "gfx_layout.h"
16 * Helper class to construct a new #FallbackParagraphLayout.
18 class FallbackParagraphLayoutFactory
{
20 /** Helper for GetLayouter, to get the right type. */
21 typedef char32_t CharType
;
22 /** Helper for GetLayouter, to get whether the layouter supports RTL. */
23 static const bool SUPPORTS_RTL
= false;
25 static ParagraphLayouter
*GetParagraphLayout(char32_t
*buff
, char32_t
*buff_end
, FontMap
&fontMapping
);
26 static size_t AppendToBuffer(char32_t
*buff
, const char32_t
*buffer_last
, char32_t c
);
30 #endif /* GFX_LAYOUT_FALLBACK_H */