mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 22:45:48 +01:00
AddFontDefault() uses implicit ref size. Passing an explicit size (13.0f) to AddFontFromFileTTF() in MergeMode triggers the assertion because the two fonts use different ref size conventions. Pass 0.0f instead so both fonts share the same implicit ref size and scale together with style.FontSizeBase.
iOS / OSX Metal example
Introduction
This example shows how to integrate Dear ImGui with Metal. It is based on the "cross-platform" game template provided with Xcode as of Xcode 9.
Consider basing your work off the example_glfw_metal/ or example_sdl2_metal/ examples. They are better supported and will be portable unlike this one.