Class SdlTtf
- Assembly
- Alis.dll
The sdl ttf extern class
public static class SdlTtf
Inheritance
Inherited Members
Fields
TtfHintingLight
The ttf hinting light
public const int TtfHintingLight = 1
Field Value
TtfHintingLightSubpixel
The ttf hinting light subpixel
public const int TtfHintingLightSubpixel = 4
Field Value
TtfHintingMono
The ttf hinting mono
public const int TtfHintingMono = 2
Field Value
TtfHintingNone
The ttf hinting none
public const int TtfHintingNone = 3
Field Value
TtfHintingNormal
The ttf hinting normal
public const int TtfHintingNormal = 0
Field Value
TtfStyleBold
The ttf style bold
public const int TtfStyleBold = 1
Field Value
TtfStyleItalic
The ttf style italic
public const int TtfStyleItalic = 2
Field Value
TtfStyleNormal
The ttf style normal
public const int TtfStyleNormal = 0
Field Value
TtfStyleStrikethrough
The ttf style strikethrough
public const int TtfStyleStrikethrough = 8
Field Value
TtfStyleUnderline
The ttf style underline
public const int TtfStyleUnderline = 4
Field Value
UnicodeBomNative
The unicode bom native
public const int UnicodeBomNative = 65279
Field Value
UnicodeBomSwapped
The unicode bom swapped
public const int UnicodeBomSwapped = 65534
Field Value
Methods
ByteSwappedUnicode(int)
Ttf the byte swapped unicode using the specified swapped
public static void ByteSwappedUnicode(int swapped)
Parameters
swapped
int-
The swapped
CloseFont(IntPtr)
Ttf the close font using the specified font
public static void CloseFont(IntPtr font)
Parameters
font
IntPtr-
The font
FontAscent(IntPtr)
Ttf the font ascent using the specified font
public static int FontAscent(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- int
-
The int
FontDescent(IntPtr)
Ttf the font descent using the specified font
public static int FontDescent(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- int
-
The int
FontFaceIsFixedWidth(IntPtr)
Ttf the font face is fixed width using the specified font
public static int FontFaceIsFixedWidth(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- int
-
The int
FontFaceStyleName(IntPtr)
Internals the ttf font face style name using the specified font
public static string FontFaceStyleName(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- string
-
The int ptr
FontFaces(IntPtr)
Ttf the font faces using the specified font
public static IntPtr FontFaces(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- IntPtr
-
The int ptr
FontHeight(IntPtr)
Ttf the font height using the specified font
public static int FontHeight(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- int
-
The int
FontLineSkip(IntPtr)
Ttf the font line skip using the specified font
public static int FontLineSkip(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- int
-
The int
GetError()
Ttf the get error
public static string GetError()
Returns
- string
-
The string
GetFontHinting(IntPtr)
Ttf the get font hinting using the specified font
public static int GetFontHinting(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- int
-
The int
GetFontKerning(IntPtr)
Ttf the get font kerning using the specified font
public static int GetFontKerning(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- int
-
The int
GetFontKerningSize(IntPtr, int, int)
Sdl the get font kerning size using the specified font
public static int GetFontKerningSize(IntPtr font, int prevIndex, int index)
Parameters
Returns
- int
-
The int
GetFontKerningSizeGlyphs(IntPtr, ushort, ushort)
Ttf the get font kerning size glyphs using the specified font
public static int GetFontKerningSizeGlyphs(IntPtr font, ushort previousCh, ushort ch)
Parameters
Returns
- int
-
The int
GetFontOutline(IntPtr)
Ttf the get font outline using the specified font
public static int GetFontOutline(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- int
-
The int
GetFontStyle(IntPtr)
Ttf the get font style using the specified font
public static int GetFontStyle(IntPtr font)
Parameters
font
IntPtr-
The font
Returns
- int
-
The int
GetVersion()
Sdl the ttf version using the specified x
public static Version GetVersion()
Returns
GlyphIsProvided(IntPtr, ushort)
Ttf the glyph is provided using the specified font
public static int GlyphIsProvided(IntPtr font, ushort ch)
Parameters
Returns
- int
-
The int
GlyphMetrics(IntPtr, ushort, out int, out int, out int, out int, out int)
Ttf the glyph metrics using the specified font
public static int GlyphMetrics(IntPtr font, ushort ch, out int minx, out int max, out int miny, out int maxy, out int advance)
Parameters
font
IntPtr-
The font
ch
ushort-
The ch
minx
int-
The minx
max
int-
The max
miny
int-
The miny
maxy
int-
The maxy
advance
int-
The advance
Returns
- int
-
The int
Init()
Ttf the init
public static int Init()
Returns
- int
-
The result
Exceptions
- Exception
-
InternalInit failed
OpenFont(string, int)
Ttf the open font using the specified file
public static IntPtr OpenFont(string file, int ptSize)
Parameters
Returns
- IntPtr
-
The handle
OpenFontIndex(string, int, long)
Internals the ttf open font index using the specified file
public static IntPtr OpenFontIndex(string file, int ptSize, long index)
Parameters
Returns
- IntPtr
-
The int ptr
Quit()
Ttf the quit
public static void Quit()
RenderGlyphBlended(IntPtr, ushort, Color)
Ttf the render glyph blended using the specified font
public static IntPtr RenderGlyphBlended(IntPtr font, ushort ch, Color fg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderGlyphShaded(IntPtr, ushort, Color, Color)
Ttf the render glyph shaded using the specified font
public static IntPtr RenderGlyphShaded(IntPtr font, ushort ch, Color fg, Color bg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderGlyphSolid(IntPtr, ushort, Color)
Ttf the render glyph solid using the specified font
public static IntPtr RenderGlyphSolid(IntPtr font, ushort ch, Color fg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderTextBlended(IntPtr, string, Color)
Ttf the render text blended using the specified font
public static IntPtr RenderTextBlended(IntPtr font, string text, Color fg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderTextBlendedWrapped(IntPtr, string, Color, uint)
Ttf the render text blended wrapped using the specified font
public static IntPtr RenderTextBlendedWrapped(IntPtr font, string text, Color fg, uint wrapped)
Parameters
Returns
- IntPtr
-
The int ptr
RenderTextShaded(IntPtr, string, Color, Color)
Ttf the render text shaded using the specified font
public static IntPtr RenderTextShaded(IntPtr font, string text, Color fg, Color bg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderTextSolid(IntPtr, string, Color)
Ttf the render text solid using the specified font
public static IntPtr RenderTextSolid(IntPtr font, string text, Color fg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderUnicodeBlended(IntPtr, string, Color)
Ttf the render unicode blended using the specified font
public static IntPtr RenderUnicodeBlended(IntPtr font, string text, Color fg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderUnicodeBlendedWrapped(IntPtr, string, Color, uint)
Ttf the render unicode blended wrapped using the specified font
public static IntPtr RenderUnicodeBlendedWrapped(IntPtr font, string text, Color fg, uint wrapped)
Parameters
Returns
- IntPtr
-
The int ptr
RenderUnicodeShaded(IntPtr, string, Color, Color)
Ttf the render unicode shaded using the specified font
public static IntPtr RenderUnicodeShaded(IntPtr font, string text, Color fg, Color bg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderUnicodeSolid(IntPtr, string, Color)
Ttf the render unicode solid using the specified font
public static IntPtr RenderUnicodeSolid(IntPtr font, string text, Color fg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderUtf8Blended(IntPtr, string, Color)
Internals the ttf render utf 8 blended using the specified font
public static IntPtr RenderUtf8Blended(IntPtr font, string text, Color fg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderUtf8BlendedWrapped(IntPtr, string, Color, uint)
Internals the ttf render utf 8 blended wrapped using the specified font
public static IntPtr RenderUtf8BlendedWrapped(IntPtr font, string text, Color sdlColor, uint wrapped)
Parameters
Returns
- IntPtr
-
The int ptr
RenderUtf8Shaded(IntPtr, string, Color, Color)
Internals the ttf render utf 8 shaded using the specified font
public static IntPtr RenderUtf8Shaded(IntPtr font, string text, Color fg, Color bg)
Parameters
Returns
- IntPtr
-
The int ptr
RenderUtf8Solid(IntPtr, string, Color)
Internals the ttf render utf 8 solid using the specified font
public static IntPtr RenderUtf8Solid(IntPtr font, string text, Color fg)
Parameters
Returns
- IntPtr
-
The int ptr
SetError(string)
Ttf the set error using the specified fmt and arg
public static void SetError(string fmtAndArgList)
Parameters
fmtAndArgList
string-
The fmt and arg
SetFontHinting(IntPtr, int)
Ttf the set font hinting using the specified font
public static void SetFontHinting(IntPtr font, int hinting)
Parameters
SetFontKerning(IntPtr, int)
Ttf the set font kerning using the specified font
public static void SetFontKerning(IntPtr font, int allowed)
Parameters
SetFontOutline(IntPtr, int)
Ttf the set font outline using the specified font
public static void SetFontOutline(IntPtr font, int outline)
Parameters
SetFontStyle(IntPtr, int)
Ttf the set font style using the specified font
public static void SetFontStyle(IntPtr font, int style)
Parameters
SizeText(IntPtr, string, out int, out int)
Ttf the size text using the specified font
public static int SizeText(IntPtr font, string text, out int w, out int h)
Parameters
Returns
- int
-
The int
SizeUnicode(IntPtr, string, out int, out int)
Ttf the size unicode using the specified font
public static int SizeUnicode(IntPtr font, string text, out int w, out int h)
Parameters
Returns
- int
-
The int
SizeUtf8(IntPtr, string, out int, out int)
Internals the ttf size utf 8 using the specified font
public static int SizeUtf8(IntPtr font, string text, out int w, out int h)
Parameters
Returns
- int
-
The int
WasInit()
Ttf the was init
public static int WasInit()
Returns
- int
-
The int