diff options
| author | JP Bruyère <jp_bruyere@hotmail.com> | 2016-07-24 05:51:46 +0200 |
|---|---|---|
| committer | JP Bruyère <jp_bruyere@hotmail.com> | 2016-07-24 05:51:46 +0200 |
| commit | 572eb59e01e61f597485b21c2dc06ccbd10fa719 (patch) | |
| tree | 6c36aca6c621726e83c234d083c00b4812830c34 /src/GraphicObjects/TextRun.cs | |
| parent | 216fa1608767774b0db1d31551dfee25fcbcddbd (diff) | |
Removed Utf16->Utf8 conversion on Win os, so Mono framework, which use
Utf8 for string encoding on every os becomes mandatory.
modified: src/GraphicObjects/Label.cs
modified: src/GraphicObjects/TextRun.cs
Diffstat (limited to 'src/GraphicObjects/TextRun.cs')
| -rw-r--r-- | src/GraphicObjects/TextRun.cs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/GraphicObjects/TextRun.cs b/src/GraphicObjects/TextRun.cs index 103f2fcf..6af22025 100644 --- a/src/GraphicObjects/TextRun.cs +++ b/src/GraphicObjects/TextRun.cs @@ -155,12 +155,7 @@ namespace Crow foreach (string s in lines) { string l = s.Replace("\t", new String (' ', Interface.TabSize)); - - #if _WIN32 || _WIN64 - TextExtents tmp = gr.TextExtents(str.ToUtf8()); - #elif __linux__ TextExtents tmp = gr.TextExtents (l); - #endif if (tmp.XAdvance > te.XAdvance) te = tmp; } @@ -287,15 +282,10 @@ namespace Crow Foreground.SetAsSource (gr); gr.MoveTo (rText.X, rText.Y + fe.Ascent + fe.Height * curLineCount); - #if _WIN32 || _WIN64 - gr.ShowText(ll.ToUtf8()); - #elif __linux__ gr.ShowText (ll); - #endif gr.Fill (); curLineCount++; - } } } |