From 8fff93eb7da1b01d101e146ca7fe5d90ca01fcde Mon Sep 17 00:00:00 2001 From: FloppyDiskDrive Date: Thu, 23 Nov 2017 11:20:53 -0600 Subject: extremely rough savesystem --- ShiftOS.Main/ShiftOS/Apps/Terminal.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ShiftOS.Main/ShiftOS/Apps') diff --git a/ShiftOS.Main/ShiftOS/Apps/Terminal.cs b/ShiftOS.Main/ShiftOS/Apps/Terminal.cs index c4bfe83..bd53ab7 100644 --- a/ShiftOS.Main/ShiftOS/Apps/Terminal.cs +++ b/ShiftOS.Main/ShiftOS/Apps/Terminal.cs @@ -4,6 +4,7 @@ using ShiftOS.Engine; using ShiftOS.Main.Terminal; using System.Linq; using System.Collections.Generic; +using System.Drawing.Text; namespace ShiftOS.Main.ShiftOS.Apps { @@ -17,6 +18,7 @@ namespace ShiftOS.Main.ShiftOS.Apps public bool WaitingResponse = false; public string InputReturnText = ""; public Stack c = TerminalBackend.commandBuffer; + private PrivateFontCollection fontCollection = new PrivateFontCollection(); // The below variables makes the terminal... a terminal! string OldText = ""; @@ -30,6 +32,11 @@ namespace ShiftOS.Main.ShiftOS.Apps termmain.ContextMenuStrip = new ContextMenuStrip(); // Disables the right click of a richtextbox! TerminalBackend.trm.Add(this); + + fontCollection.AddFontFile(SaveSystem.fontDir + "\\termFont.ttf"); + + termmain.Font = new System.Drawing.Font(fontCollection.Families[0], 12F, System.Drawing.FontStyle.Regular); + } void Print() -- cgit v1.2.3