[gbrainy] A more elegant default font proportion
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gbrainy] A more elegant default font proportion
- Date: Sun, 21 Feb 2010 17:04:06 +0000 (UTC)
commit 6b7f879d57ec25f2bbec94862a843723b1414f55
Author: Jordi Mas <jmas softcatala org>
Date: Sun Feb 21 18:04:41 2010 +0100
A more elegant default font proportion
src/Core/Libraries/CairoContextEx.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Libraries/CairoContextEx.cs b/src/Core/Libraries/CairoContextEx.cs
index e667abd..b38ace0 100644
--- a/src/Core/Libraries/CairoContextEx.cs
+++ b/src/Core/Libraries/CairoContextEx.cs
@@ -124,7 +124,7 @@ namespace gbrainy.Core.Libraries
public void SetPangoNormalFontSize ()
{
- font_size = 0.025;
+ font_size = 0.022;
}
public void SetPangoLargeFontSize ()
@@ -196,6 +196,8 @@ namespace gbrainy.Core.Libraries
else
layout.Width = (int) (width * old.Xx * Pango.Scale.PangoScale);
+ layout.Spacing = (int) (0.018 * (old.Xx * Pango.Scale.PangoScale));
+
layout.SingleParagraphMode = false;
layout.SetText (str);
Pango.CairoHelper.ShowLayout (this, layout);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]