UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FontSdfSettings.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "CoreMinimal.h"
6#include "UObject/Class.h"
7#include "FontSdfSettings.generated.h"
8
12USTRUCT(BlueprintType)
14{
16
17
18 UPROPERTY(EditAnywhere, Category=SdfFont, meta = (ClampMin = 8, ClampMax = 256, DisplayName="Base SDF px/em"))
19 int32 BasePpem = 32;
20
22 inline int32 GetClampedPpem() const
23 {
24 return FMath::Clamp(AlignArbitrary(BasePpem, 4), 8, 256);
25 }
26};
constexpr T AlignArbitrary(T Val, uint64 Alignment)
Definition AlignmentTemplates.h:66
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define USTRUCT(...)
Definition ObjectMacros.h:746
#define GENERATED_USTRUCT_BODY(...)
Definition ObjectMacros.h:767
Definition FontSdfSettings.h:14
static constexpr UE_FORCEINLINE_HINT T Clamp(const T X, const T MinValue, const T MaxValue)
Definition UnrealMathUtility.h:592