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