/[RomCheater]/trunk/RomCheater.ScratchPad/ScratchPadDocument.cs
ViewVC logotype

Diff of /trunk/RomCheater.ScratchPad/ScratchPadDocument.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.ScratchPad/ScratchPadDocument.cs	2013/06/20 23:22:24	779
+++ trunk/RomCheater.ScratchPad/ScratchPadDocument.cs	2013/06/20 23:35:02	780
@@ -87,6 +87,22 @@
             }
         }
 
+        public override Font Font
+        {
+            get
+            {
+                return base.Font;
+            }
+            set
+            {
+                base.Font = value;
+                txtEditor.Font = base.Font;
+                mnuItemClose.Font = base.Font;
+                mnuItemOpen.Font = base.Font;
+                mnuItemSave.Font = base.Font;
+            }
+        }
+
         private void mnuItemOpen_Click(object sender, EventArgs e)
         {
             OpenDocument();
@@ -125,6 +141,7 @@
                                 sr.Close();
 
                                 txtEditor.Document = new Fireball.Syntax.SyntaxDocument();
+                                //txtEditor.Font = new System.Drawing.Font(this.Font.FontFamily, this.Font.SizeInPoints);
                                 txtEditor.Document.Text = text;                                
                                 SyntaxLanguage language = SyntaxLanguage.Text;
                                 CodeEditorSyntaxLoader.SetSyntax(txtEditor, language);

 

  ViewVC Help
Powered by ViewVC 1.1.22