From d8cf2d9166319ecf8086ce52a439dc411e8a36b7 Mon Sep 17 00:00:00 2001 From: Yan Maniez Date: Wed, 20 Jun 2018 11:05:34 +0200 Subject: [PATCH] Fonts dans theme markdown --- AideDeJeu/AideDeJeu/Tools/MarkdownThemes.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/AideDeJeu/AideDeJeu/Tools/MarkdownThemes.cs b/AideDeJeu/AideDeJeu/Tools/MarkdownThemes.cs index 4515b138..678d2e22 100644 --- a/AideDeJeu/AideDeJeu/Tools/MarkdownThemes.cs +++ b/AideDeJeu/AideDeJeu/Tools/MarkdownThemes.cs @@ -9,9 +9,14 @@ namespace AideDeJeu.Tools { public MonsterMarkdownTheme() { - //this.Paragraph.FontFamily = "LinLibertine_aS.ttf#Linux Libertine Capitals"; + var fd = FormatedTextHelpers.FontData.FromResource("content"); + //this.Paragraph.FontFamily = fd.FontFamily; + this.Paragraph.FontSize = (float)fd.FontSize; + this.Paragraph.Attributes = fd.FontAttributes; + this.Paragraph.ForegroundColor = fd.TextColor; + this.BackgroundColor = DefaultBackgroundColor; - this.Paragraph.ForegroundColor = DefaultTextColor; + //this.Paragraph.ForegroundColor = DefaultTextColor; this.Heading1.ForegroundColor = DefaultTextColor; this.Heading1.BorderColor = DefaultSeparatorColor; this.Heading2.ForegroundColor = DefaultTextColor;