Complete rewrite of sf::Font to make it more flexible (no more fixed charset and size)
FS#125 - Fix tab character not working in sf::String git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1309 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
839c80556d
commit
3a34f81561
32 changed files with 1016 additions and 3016 deletions
|
@ -211,10 +211,10 @@ namespace SFML
|
|||
/// Base size of characters
|
||||
/// </summary>
|
||||
////////////////////////////////////////////////////////////
|
||||
public float Size
|
||||
public uint Size
|
||||
{
|
||||
get {return sfText_GetSize(This);}
|
||||
set {sfText_SetSize(This, value);}
|
||||
get {return sfText_GetCharacterSize(This);}
|
||||
set {sfText_SetCharacterSize(This, value);}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -376,7 +376,7 @@ namespace SFML
|
|||
static extern void sfText_SetFont(IntPtr This, IntPtr Font);
|
||||
|
||||
[DllImport("csfml-graphics"), SuppressUnmanagedCodeSecurity]
|
||||
static extern void sfText_SetSize(IntPtr This, float Size);
|
||||
static extern void sfText_SetCharacterSize(IntPtr This, uint Size);
|
||||
|
||||
[DllImport("csfml-graphics"), SuppressUnmanagedCodeSecurity]
|
||||
static extern void sfText_SetStyle(IntPtr This, Styles Style);
|
||||
|
@ -385,7 +385,7 @@ namespace SFML
|
|||
static extern string sfText_GetString(IntPtr This);
|
||||
|
||||
[DllImport("csfml-graphics"), SuppressUnmanagedCodeSecurity]
|
||||
static extern float sfText_GetSize(IntPtr This);
|
||||
static extern uint sfText_GetCharacterSize(IntPtr This);
|
||||
|
||||
[DllImport("csfml-graphics"), SuppressUnmanagedCodeSecurity]
|
||||
static extern Styles sfText_GetStyle(IntPtr This);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue