Fix textbox height

Fix build error under non-windows platforms
This commit is contained in:
ExMatics HydrogenC
2023-12-01 19:38:15 +08:00
parent 7b63c7016c
commit 95f5e31e48
8 changed files with 85 additions and 13 deletions

View File

@@ -122,7 +122,8 @@ struct TIsPODType<FontLineCache>
};
/// <summary>
/// The font block info generated during text processing.
/// The font block info generated during text processing.
/// A block means a range of text that belongs to the same line and can be rendered with the same font.
/// </summary>
API_STRUCT(NoDefault) struct FontBlockCache
{
@@ -134,7 +135,7 @@ API_STRUCT(NoDefault) struct FontBlockCache
API_FIELD() Float2 Location;
/// <summary>
/// The height of the current block
/// The size of the current block
/// </summary>
API_FIELD() Float2 Size;
@@ -183,7 +184,7 @@ API_STRUCT(NoDefault) struct BlockedTextLineCache
API_FIELD() float MaxAscender;
/// <summary>
/// The index of the font to render with
/// The blocks that belongs to this line
/// </summary>
API_FIELD() Array<FontBlockCache> Blocks;
};