[chronojump] Cairo XY (jumps/time, jumps FV) have same font for writeSelectedValues)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Cairo XY (jumps/time, jumps FV) have same font for writeSelectedValues)
- Date: Tue, 15 Feb 2022 16:47:54 +0000 (UTC)
commit 9a6ccf1af0ad7b3f48e552d5190d6d5c6e9e3fd3
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Feb 15 17:45:49 2022 +0100
Cairo XY (jumps/time, jumps FV) have same font for writeSelectedValues)
src/gui/cairo/jumpsWeightFVProfile.cs | 2 ++
src/gui/cairo/xy.cs | 3 +++
2 files changed, 5 insertions(+)
---
diff --git a/src/gui/cairo/jumpsWeightFVProfile.cs b/src/gui/cairo/jumpsWeightFVProfile.cs
index 89a1deb41..8428a8515 100644
--- a/src/gui/cairo/jumpsWeightFVProfile.cs
+++ b/src/gui/cairo/jumpsWeightFVProfile.cs
@@ -200,6 +200,8 @@ public class JumpsWeightFVProfileGraph : CairoXY
protected override void writeSelectedValues(int line, PointF pClosest)
{
+ g.SelectFontFace(font, Cairo.FontSlant.Normal, Cairo.FontWeight.Normal);
+ g.SetFontSize(textHeight);
double lineVertSpacing = 1;
// first check if it fits at right, if does not fit reduce lineVertSpacing
diff --git a/src/gui/cairo/xy.cs b/src/gui/cairo/xy.cs
index cae7e3abd..8fb7909dd 100644
--- a/src/gui/cairo/xy.cs
+++ b/src/gui/cairo/xy.cs
@@ -611,6 +611,9 @@ public abstract class CairoXY : CairoGeneric
protected virtual void writeSelectedValues(int line, PointF pClosest)
{
+ g.SelectFontFace(font, Cairo.FontSlant.Normal, Cairo.FontWeight.Normal);
+ g.SetFontSize(textHeight);
+
g.SetSourceColor(bluePlots);
writeTextAtRight(line, Catalog.GetString("Selected") + ":", false);
g.SetSourceRGB(0, 0, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]