private ImFontAtlas_AddFontFromMemoryTTF ( |
||
atlas | ||
ttf_data | void | |
ttf_size | int | |
size_pixels | float | |
font_cfg | ||
glyph_ranges | char | |
Résultat | NativeFont* |
public Font AddFontFromMemoryTTF(IntPtr ttfData, int ttfDataSize, float pixelSize, IntPtr fontConfig) { NativeFont *nativeFontPtr = ImGuiNative.ImFontAtlas_AddFontFromMemoryTTF(_atlasPtr, ttfData.ToPointer(), ttfDataSize, pixelSize, fontConfig, null); return(new Font(nativeFontPtr)); }
public ImFont AddFontFromMemoryTTF(IntPtr ttfData, int ttfDataSize, float pixelSize) { NativeImFont *nativeFontPtr = ImGuiNative.ImFontAtlas_AddFontFromMemoryTTF(Native, ttfData.ToPointer(), ttfDataSize, pixelSize, IntPtr.Zero, null); return(new ImFont(nativeFontPtr)); }