diff options
| author | FloppyDiskDrive <[email protected]> | 2017-11-23 11:21:59 -0600 |
|---|---|---|
| committer | FloppyDiskDrive <[email protected]> | 2017-11-23 11:21:59 -0600 |
| commit | b1a4d9ea4ef4aa8bed1ca31af2e774a52bef5038 (patch) | |
| tree | 715d7ae03e38572d0ec796571aa3c935553e0deb /shiftos.main | |
| parent | 8fff93eb7da1b01d101e146ca7fe5d90ca01fcde (diff) | |
| download | shiftos-rewind-b1a4d9ea4ef4aa8bed1ca31af2e774a52bef5038.tar.gz shiftos-rewind-b1a4d9ea4ef4aa8bed1ca31af2e774a52bef5038.tar.bz2 shiftos-rewind-b1a4d9ea4ef4aa8bed1ca31af2e774a52bef5038.zip | |
this is drunk
Diffstat (limited to 'shiftos.main')
| -rw-r--r-- | shiftos.main/shiftos/apps/terminal.cs | 7 |
1 files changed, 7 insertions, 0 deletions
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<string> 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() |
