[winforms] Use conditional attributes, not ifdefs to insert conditional code
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms.RTF / Font.cs
index b0af7c7e5347d03b957b8ae53bb27617ae6b179d..7feaa46954ce111b29ee8955f7ac13b2281aa680 100644 (file)
 // COMPLETE
 
 namespace System.Windows.Forms.RTF {
-       internal class Font {
+
+#if RTF_LIB
+       public
+#else
+       internal
+#endif
+       class Font {
                #region Local Variables
                private string          name;
                private string          alt_name;
@@ -45,6 +51,7 @@ namespace System.Windows.Forms.RTF {
                public Font(RTF rtf) {
                        this.rtf = rtf;
                        num = -1;
+                       name = String.Empty;
 
                        lock (rtf) {
                                if (rtf.Fonts == null)