Added Greek symbols
Commented out code that is not used
This commit is contained in:
parent
f97bf6d24c
commit
d82a57f751
Binary file not shown.
@ -4,66 +4,66 @@ using System.Text;
|
||||
|
||||
namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
public static class FontTab
|
||||
{
|
||||
private static Dictionary<string, int> FontIndx = null;
|
||||
// This dictionary takes a color name and converts it to the rtf string:
|
||||
private static Dictionary<string, string> 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
|
||||
/// <summary>
|
||||
/// GetIndex - Use this to get the number of the font in the font table based on the input
|
||||
/// string.
|
||||
/// </summary>
|
||||
/// <param name="font"></param>
|
||||
/// <returns></returns>
|
||||
public static int GetIndex(string font)
|
||||
{
|
||||
// if the dictionary hasn't been set yet,
|
||||
if (FontIndx==null)
|
||||
{
|
||||
FontIndx = new Dictionary<string, int>();
|
||||
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;
|
||||
//public static class FontTab
|
||||
//{
|
||||
// private static Dictionary<string, int> FontIndx = null;
|
||||
// // This dictionary takes a color name and converts it to the rtf string:
|
||||
// private static Dictionary<string, string> 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
|
||||
// /// <summary>
|
||||
// /// GetIndex - Use this to get the number of the font in the font table based on the input
|
||||
// /// string.
|
||||
// /// </summary>
|
||||
// /// <param name="font"></param>
|
||||
// /// <returns></returns>
|
||||
// public static int GetIndex(string font)
|
||||
// {
|
||||
// // if the dictionary hasn't been set yet,
|
||||
// if (FontIndx==null)
|
||||
// {
|
||||
// FontIndx = new Dictionary<string, int>();
|
||||
// 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
|
||||
/// <summary>
|
||||
/// GetTableString - Use this to get the string to add to font table based on the input
|
||||
/// string.
|
||||
/// </summary>
|
||||
public static string GetTableString(string font)
|
||||
{
|
||||
if (FontRtf == null)
|
||||
{
|
||||
FontRtf = new Dictionary<string, string>();
|
||||
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
|
||||
}
|
||||
// }
|
||||
// return FontIndx[font];
|
||||
// }
|
||||
// #endregion
|
||||
// #region ColorRtf
|
||||
// /// <summary>
|
||||
// /// GetTableString - Use this to get the string to add to font table based on the input
|
||||
// /// string.
|
||||
// /// </summary>
|
||||
// public static string GetTableString(string font)
|
||||
// {
|
||||
// if (FontRtf == null)
|
||||
// {
|
||||
// FontRtf = new Dictionary<string, string>();
|
||||
// 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
|
||||
//}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user