OpenTTD Source 15.0-RC1
gfx_layout_fallback.h File Reference

Functions related to laying out the texts as fallback. More...

#include "gfx_layout.h"

Go to the source code of this file.

Data Structures

class  FallbackParagraphLayoutFactory
 Helper class to construct a new FallbackParagraphLayout. More...
 

Functions

char32_t SwapRtlPairedCharacters (char32_t c)
 Swap paired brackets for fallback RTL layouting.
 

Detailed Description

Functions related to laying out the texts as fallback.

Definition in file gfx_layout_fallback.h.

Function Documentation

◆ SwapRtlPairedCharacters()

char32_t SwapRtlPairedCharacters ( char32_t  c)
inline

Swap paired brackets for fallback RTL layouting.

Parameters
cCharacter to swap.
Returns
Swapped character, or original character if it is not a paired bracket.

Definition at line 34 of file gfx_layout_fallback.h.

Referenced by UniscribeRun::FallbackShape(), and ICURun::FallbackShape().