[chronojump] method to FindPangoFonts
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] method to FindPangoFonts
- Date: Mon, 28 Sep 2020 14:46:49 +0000 (UTC)
commit 3b860f2e9a2b45bd06b72d53b0bb92f10d724297
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Sep 28 16:46:08 2020 +0200
method to FindPangoFonts
src/utilGtk.cs | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/src/utilGtk.cs b/src/utilGtk.cs
index fceff205..912f0be4 100644
--- a/src/utilGtk.cs
+++ b/src/utilGtk.cs
@@ -1029,4 +1029,14 @@ public class UtilGtk
pixmap.DrawPolygon(pen, true, points);
}
+ public static void FindPangoFonts(Gtk.DrawingArea drawingarea)
+ {
+ LogB.Information("Available Pango fonts:");
+ foreach(Pango.FontFamily ff in drawingarea.PangoContext.Families)
+ {
+ LogB.Information(ff.Name);
+ foreach(Pango.FontFace faces in ff.Faces)
+ LogB.Information("- " + faces.FaceName);
+ }
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]