UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CompositeFont.h File Reference
#include "CoreMinimal.h"
#include "Fonts/FontRasterizationMode.h"
#include "UObject/ObjectMacros.h"
#include "UObject/GCObject.h"
#include "UObject/Class.h"
#include "CompositeFont.generated.h"

Go to the source code of this file.

Classes

struct  FFontFaceData
 
struct  FFontRasterizationSettings
 
struct  FFontData
 
struct  TStructOpsTypeTraits< FFontData >
 
struct  FTypefaceEntry
 
struct  FTypeface
 
struct  FCompositeFallbackFont
 
struct  FCompositeSubFont
 
struct  FCompositeFont
 
struct  FStandaloneCompositeFont
 

Namespaces

namespace  UE
 
namespace  UE::Slate
 

Typedefs

typedef TSharedPtr< FFontFaceData, ESPMode::ThreadSafeFFontFaceDataPtr
 
typedef TSharedRef< FFontFaceData, ESPMode::ThreadSafeFFontFaceDataRef
 
typedef TSharedPtr< const FFontFaceData, ESPMode::ThreadSafeFFontFaceDataConstPtr
 
typedef TSharedRef< const FFontFaceData, ESPMode::ThreadSafeFFontFaceDataConstRef
 

Enumerations

enum class  EFontHinting : uint8 {
  Default , Auto , AutoLight , Monochrome ,
  None
}
 
enum class  EFontLoadingPolicy : uint8 { LazyLoad , Stream , Inline }
 
enum class  EFontLayoutMethod : uint8 { Metrics , BoundingBox }
 

Typedef Documentation

◆ FFontFaceDataConstPtr

◆ FFontFaceDataConstRef

◆ FFontFaceDataPtr

◆ FFontFaceDataRef

Enumeration Type Documentation

◆ EFontHinting

enum class EFontHinting : uint8
strong
Enumerator
Default 

Use the default hinting specified in the font.

Auto 

Force the use of an automatic hinting algorithm.

AutoLight 

Force the use of an automatic light hinting algorithm, optimized for non-monochrome displays.

Monochrome 

Force the use of an automatic hinting algorithm optimized for monochrome displays.

None 

Do not use hinting.

◆ EFontLayoutMethod

enum class EFontLayoutMethod : uint8
strong
Enumerator
Metrics 

Layout the font using the metrics data available in the font. This is typically the desired option, however some fonts have broken or incorrect metrics so may yield better results when using the bounding box values to layout the font.

BoundingBox 

Layout the font using the values from its bounding box. This typically yields a larger line height for fonts that have valid metrics, however it can also produce much better results for fonts that have broken or incorrect metrics.

◆ EFontLoadingPolicy

enum class EFontLoadingPolicy : uint8
strong
Enumerator
LazyLoad 

Lazy load the entire font into memory. This will consume more memory than Streaming, however there will be zero file-IO when rendering glyphs within the font, although the initial load may cause a hitch.

Stream 

Stream the font from disk. This will consume less memory than LazyLoad or Inline, however there will be file-IO when rendering glyphs, which may cause hitches under certain circumstances or on certain platforms.

Inline 

Embed the font data within the asset. This will consume more memory than Streaming, however it is guaranteed to be hitch free (only valid for font data within a Font Face asset).