예제 #1
0
 public ImFont(NativeImFont *native)
 {
     Native = native;
 }
예제 #2
0
파일: ImFontAtlas.cs 프로젝트: se5a/ImGuiCS
        public ImFont AddFontFromFileTTF(string fileName, float pixelSize)
        {
            NativeImFont *nativeFontPtr = ImGuiNative.ImFontAtlas_AddFontFromFileTTF(Native, fileName, pixelSize, IntPtr.Zero, null);

            return(new ImFont(nativeFontPtr));
        }
예제 #3
0
파일: ImFontAtlas.cs 프로젝트: se5a/ImGuiCS
        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));
        }
예제 #4
0
파일: ImFontAtlas.cs 프로젝트: se5a/ImGuiCS
        public ImFont AddDefaultFont()
        {
            NativeImFont *nativeFontPtr = ImGuiNative.ImFontAtlas_AddFontDefault(Native);

            return(new ImFont(nativeFontPtr));
        }