Function BlamRendering::DirectX::D2D::LoadFontFromFile¶
Defined in File rendering.h
Function Documentation¶
-
HRESULT
BlamRendering::DirectX::D2D
::
LoadFontFromFile
(std::string id, std::string file_path)¶ Loads a TrueType font from the specified file into the list of loaded font collections.
- Return
S_OK
if the font was loaded successfully, otherwise will return an error code.- Parameters
id
: - The ID of the new font collection.file_path
: - The path to the TrueType file.