engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
FFontData结构体 参考

Payload data describing an individual font in a typeface. 更多...

#include <CompositeFont.h>

Public 成员函数

void AddReferencedObjects (FReferenceCollector &Collector)
 Called by FStandaloneCompositeFont to prevent our objects from being GCd
 
 FFontData ()
 Default constructor
 
 FFontData (const UObject *const InFontFaceAsset, const int32 InSubFaceIndex=0)
 Construct the raw data from a font face asset
 
 FFontData (FString InFontFilename, const EFontHinting InHinting, const EFontLoadingPolicy InLoadingPolicy, const int32 InSubFaceIndex=0)
 Construct the raw data from a filename and the font data attributes
 
const UObject * GetFontFaceAsset () const
 Get the font face asset used by this data (if any).
 
FFontFaceDataConstPtr GetFontFaceData () const
 Get the data buffer containing the data for the current font face.
 
const FString & GetFontFilename () const
 Get the filename of the font to use. 更多...
 
EFontHinting GetHinting () const
 Get the hinting algorithm to use with the font.
 
EFontLayoutMethod GetLayoutMethod () const
 Get the method to use when laying out the font?
 
EFontLoadingPolicy GetLoadingPolicy () const
 Get the enum controlling how this font should be loaded at runtime.
 
int32 GetSubFaceIndex () const
 Get the index of the sub-face that should be used.
 
bool HasFont () const
 Is this font data set to a font? (either by filename or by inline data)
 
bool operator!= (const FFontData &Other) const
 Check to see whether this font data is not equal to the other font data
 
bool operator== (const FFontData &Other) const
 Check to see whether this font data is equal to the other font data
 
bool Serialize (FArchive &Ar)
 Handle serialization for this struct.
 
void SetSubFaceIndex (const int32 InSubFaceIndex)
 Set the index of the sub-face that should be used.
 

友元

uint32 GetTypeHash (const FFontData &Key)
 Get the type hash for this font data
 

详细描述

Payload data describing an individual font in a typeface.

Keep this lean as it's also used as a key!

成员函数说明

◆ GetFontFilename()

const FString & FFontData::GetFontFilename ( ) const

Get the filename of the font to use.

This may not actually exist on disk in editor builds and we should load the face buffer instead.


该结构体的文档由以下文件生成: