MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / FlushFaceSize

Method FlushFaceSize

Source/Engine/Render2D/Font.cpp:473–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473void Font::FlushFaceSize() const
474{
475 // Set the character size
476 const FT_Face face = _asset->GetFTFace();
477 const FT_Error error = FT_Set_Char_Size(face, 0, ConvertPixelTo26Dot6<FT_F26Dot6>(_size * FontManager::FontScale), DefaultDPI, DefaultDPI);
478 if (error)
479 {
480 LOG_FT_ERROR(error);
481 }
482
483 // Clear transform
484 FT_Set_Transform(face, nullptr, nullptr);
485}
486
487String Font::ToString() const
488{

Callers 1

AddNewEntryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected