示例#1
0
        /* IntPtr refers to a TTF_Font */
        public static IntPtr TTF_OpenFont(string file, int ptsize)
        {
            var fileUTF8 = Utf8String.ReusableBufferPtr(file);

            return(TTF_OpenFontNative(fileUTF8, ptsize));
        }
示例#2
0
        /* IntPtr refers to an SDL_Surface*, font to a TTF_Font* */
        public static IntPtr TTF_RenderUTF8_Blended_Wrapped(IntPtr font, string text, SDL.SDL_Color fg, uint wrapped)
        {
            var textUTF8 = Utf8String.ReusableBufferPtr(text);

            return(TTF_RenderUTF8_Blended_WrappedNative(font, textUTF8, fg, wrapped));
        }
示例#3
0
        /* IntPtr refers to an SDL_Surface*, font to a TTF_Font* */
        public static IntPtr TTF_RenderUTF8_Shaded(IntPtr font, string text, SDL.SDL_Color fg, SDL.SDL_Color bg)
        {
            var textUTF8 = Utf8String.ReusableBufferPtr(text);

            return(TTF_RenderUTF8_ShadedNative(font, textUTF8, fg, bg));
        }
示例#4
0
        /* font refers to a TTF_Font* */
        public static int TTF_SizeUTF8(IntPtr font, string text, out int w, out int h)
        {
            var textUTF8 = Utf8String.ReusableBufferPtr(text);

            return(TTF_SizeUTF8Native(font, textUTF8, out w, out h));
        }
示例#5
0
 /* font refers to a TTF_Font* */
 public static string TTF_FontFaceStyleName(IntPtr font)
 {
     return(Utf8String.String(TTF_FontFaceStyleNameNative(font)));
 }
示例#6
0
        /* IntPtr refers to a TTF_Font* */
        public static IntPtr TTF_OpenFontIndex(string file, int ptsize, long index)
        {
            var fileUTF8 = Utf8String.ReusableBufferPtr(file);

            return(TTF_OpenFontIndexNative(fileUTF8, ptsize, index));
        }