1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-31 07:26:09 +00:00

Fonts dans theme markdown

This commit is contained in:
Yan Maniez 2018-06-20 11:05:34 +02:00
parent c802c030b0
commit d8cf2d9166

View file

@ -9,9 +9,14 @@ namespace AideDeJeu.Tools
{ {
public MonsterMarkdownTheme() 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.BackgroundColor = DefaultBackgroundColor;
this.Paragraph.ForegroundColor = DefaultTextColor; //this.Paragraph.ForegroundColor = DefaultTextColor;
this.Heading1.ForegroundColor = DefaultTextColor; this.Heading1.ForegroundColor = DefaultTextColor;
this.Heading1.BorderColor = DefaultSeparatorColor; this.Heading1.BorderColor = DefaultSeparatorColor;
this.Heading2.ForegroundColor = DefaultTextColor; this.Heading2.ForegroundColor = DefaultTextColor;