[gbrainy] Set default font size. Fixes PDF export issues
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] Set default font size. Fixes PDF export issues
- Date: Mon, 22 Nov 2010 21:46:08 +0000 (UTC)
commit 1ebd16db12c1c49a1d623a8bddb809ac60da157c
Author: Jordi Mas <jmas softcatala org>
Date: Mon Nov 22 22:48:10 2010 +0100
Set default font size. Fixes PDF export issues
src/Core/Main/Game.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/Main/Game.cs b/src/Core/Main/Game.cs
index 6270c6d..d8ae719 100644
--- a/src/Core/Main/Game.cs
+++ b/src/Core/Main/Game.cs
@@ -345,6 +345,8 @@ namespace gbrainy.Core.Main
gr.DrawBackground ();
gr.Color = default_color;
gr.LineWidth = LineWidth;
+ // Not all Cairo surfaces have a default font size (like PDF)
+ gr.SetPangoNormalFontSize ();
}
public virtual void Draw (CairoContextEx gr, int width, int height, bool rtl)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]