diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-07-01 23:38:09 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-07-01 23:38:09 +0200 |
| commit | a4386e4844dbb85b804770d936b2d47c7584d258 (patch) | |
| tree | 85113f4aa66fa77f2e4cde0d4e02bc8eeadbd962 /Samples/DebugLogAnalyzer/src/DbgLogViewer.cs | |
| parent | 6c4bb7e2c26c3a4c612fdece4dee96282391007a (diff) | |
wip
Diffstat (limited to 'Samples/DebugLogAnalyzer/src/DbgLogViewer.cs')
| -rw-r--r-- | Samples/DebugLogAnalyzer/src/DbgLogViewer.cs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Samples/DebugLogAnalyzer/src/DbgLogViewer.cs b/Samples/DebugLogAnalyzer/src/DbgLogViewer.cs index 251090ef..89cf3e0c 100644 --- a/Samples/DebugLogAnalyzer/src/DbgLogViewer.cs +++ b/Samples/DebugLogAnalyzer/src/DbgLogViewer.cs @@ -271,10 +271,7 @@ namespace Crow { base.onDraw (gr); - gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight); - gr.SetFontSize (Font.Size); - gr.FontOptions = Interface.FontRenderingOptions; - gr.Antialias = Cairo.Antialias.None; + setFontForContext (gr); if (widgets == null) return; @@ -387,10 +384,7 @@ namespace Crow } } - ctx.SelectFontFace (Font.Name, Font.Slant, Font.Wheight); - ctx.SetFontSize (Font.Size); - ctx.FontOptions = Interface.FontRenderingOptions; - ctx.Antialias = Interface.Antialias; + setFontForContext (ctx); string str = ticksToMS(hoverTick); @@ -609,8 +603,7 @@ namespace Crow using (Context gr = new Context (IFace.surf)) { double maxNameWidth = 0.0; - gr.SelectFontFace (Font.Name, Font.Slant, Font.Wheight); - gr.SetFontSize (Font.Size); + setFontForContext (gr); foreach (DbgWidgetRecord o in widgets) { double nameWidth = gr.TextExtents (o.name).Width + 5.0 * o.xLevel; |