public ImFont(NativeImFont *native) { Native = native; }
public ImFont AddFontFromFileTTF(string fileName, float pixelSize) { NativeImFont *nativeFontPtr = ImGuiNative.ImFontAtlas_AddFontFromFileTTF(Native, fileName, pixelSize, IntPtr.Zero, null); return(new ImFont(nativeFontPtr)); }
public ImFont AddFontFromMemoryTTF(IntPtr ttfData, int ttfDataSize, float pixelSize, IntPtr fontConfig) { NativeImFont *nativeFontPtr = ImGuiNative.ImFontAtlas_AddFontFromMemoryTTF(Native, ttfData.ToPointer(), ttfDataSize, pixelSize, fontConfig, null); return(new ImFont(nativeFontPtr)); }
public ImFont AddDefaultFont() { NativeImFont *nativeFontPtr = ImGuiNative.ImFontAtlas_AddFontDefault(Native); return(new ImFont(nativeFontPtr)); }