Sound drag/drop
This commit is contained in:
@@ -11,15 +11,20 @@ namespace anm2ed::resource
|
||||
pointer = ImGui::GetIO().Fonts->AddFontFromMemoryTTF(data, length, size, &config);
|
||||
}
|
||||
|
||||
void Font::append(void* data, size_t length, int size)
|
||||
{
|
||||
ImFontConfig config;
|
||||
config.MergeMode = true;
|
||||
config.FontDataOwnedByAtlas = false;
|
||||
ImGui::GetIO().Fonts->AddFontFromMemoryTTF(data, length, size, &config);
|
||||
}
|
||||
|
||||
Font::~Font()
|
||||
{
|
||||
if (get()) ImGui::GetIO().Fonts->RemoveFont(pointer);
|
||||
}
|
||||
|
||||
ImFont* Font::get()
|
||||
{
|
||||
return pointer;
|
||||
}
|
||||
ImFont* Font::get() { return pointer; }
|
||||
|
||||
Font& Font::operator=(Font&& other) noexcept
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user