using System; using System.Collections.Generic; using System.Text; namespace VEPROMS.CSLA.Library { //public static class FontTab //{ // private static Dictionary FontIndx = null; // // This dictionary takes a color name and converts it to the rtf string: // private static Dictionary FontRtf = null; // public enum E_Fonts : int // { // None = 0, PrestigeEliteTall = 64, CourierNew = 2, TimesNewRoman = 0, LetterGothic = 66, Arial = 202, VolianDraw = 70, GothicUltra = 63, LetterGothicTall = 67, VolianScript = 71, ArialUnicode = 35 // } // #region FontIndex // /// // /// GetIndex - Use this to get the number of the font in the font table based on the input // /// string. // /// // /// // /// // public static int GetIndex(string font) // { // // if the dictionary hasn't been set yet, // if (FontIndx==null) // { // FontIndx = new Dictionary(); // FontIndx["Prestige Elite Tall"] = 64; // FontIndx["Courier New"] = 2; // FontIndx["Times New Roman"] = 0; // FontIndx["Letter Gothic"] = 66; // FontIndx["Arial"] = 202; // FontIndx["Volian Draw"] = 70; // FontIndx["Gothic Ultra"] = 63; // FontIndx["Letter Gothic Tall"] = 67; // FontIndx["VolianScript"] = 71; // FontIndx["Arial Unicode"] = 35; // } // return FontIndx[font]; // } // #endregion // #region ColorRtf // /// // /// GetTableString - Use this to get the string to add to font table based on the input // /// string. // /// // public static string GetTableString(string font) // { // if (FontRtf == null) // { // FontRtf = new Dictionary(); // FontRtf["Prestige Elite Tall"] = "{\\f64\\fmodern\\fcharset2\\fprq1 Prestige Elite Tall;}"; // FontRtf["Courier New"] = "{\\f2\\fmodern\\fcharset0\\fprq1 Courier New;}"; // FontRtf["Times New Roman"] = "{\\f0\\froman\\fcharset0\\fprq2 Times New Roman;}"; // FontRtf["Letter Gothic"] = "{\\f66\\fmodern\\fcharset2\\fprq1 Letter Gothic;}"; // FontRtf["Arial"] = "{\\f1\\fswiss\\fcharset0\\fprq2 Arial;}"; // FontRtf["Volian Draw"] = "{\\f70\\fmodern\\fcharset2\\fprq1 VolianDraw;}"; // FontRtf["Gothic Ultra"] = "{\\f63\\fmodern\\fcharset2\\fprq1 Gothic Ultra;}"; // FontRtf["Letter Gothic Tall"] = "{\\f67\\fmodern\\fcharset2\\fprq1 Letter Gothic Tall;}"; // FontRtf["VolianScript"] = "{\\f71\\fswiss\\fcharset2\\fprq2 VolianScript;}"; // FontRtf["Arial Unicode"] = "{\\f35\\fswiss\\fcharset128\\fprq2 Arial Unicode MS;}"; // } // return FontRtf[font]; // } // #endregion //} }