Files
UnrealEngineUWP/Engine/Source/Developer/SlateFontDialog/Private/SlateFontDialogModule.cpp
robert seiver d1d357fed5 Linux font picker window for Offline fonts
#jira UE-70828, UEQATC-901
[at]Brandon.Schaefer, [at]James.Singer, [at]Michael.Sartain

#ROBOMERGE-SOURCE: CL 17288433 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v861-17282326)

[CL 17288448 by robert seiver in ue5-release-engine-test branch]
2021-08-24 12:18:19 -04:00

21 lines
558 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "SlateFontDialogModule.h"
#include "SlateFontDlgWindow.h"
bool FSlateFontDialogModule::OpenFontDialog(FString& OutFontName, float& OutHeight, EFontImportFlags& OutFlags)
{
bool SuccessfulLoad = false;
FSlateFontDlgWindow FontDialog(SuccessfulLoad);
if (!SuccessfulLoad)
{
return false;
}
bool SuccessfulWindow = false;
FontDialog.OpenFontWindow(OutFontName, OutHeight, OutFlags, SuccessfulWindow);
return SuccessfulWindow;
}
IMPLEMENT_MODULE(FSlateFontDialogModule, SlateFontDialog);