Exemplo n.º 1
0
        /// <summary>
        /// Static ctor: initializes static graphics resources.
        /// </summary>
        static OneResultControl()
        {
            fntArr[fntPinyinHead] = FontCollection.CreateFont(Magic.PinyinFontFamily, Magic.PinyinFontSize, Magic.PinyinFontStyle);
            fntArr[fntSenseLatin] = (SystemFontProvider.Instance as ZydeoSystemFontProvider).GetLemmaFont(
                FontStyle.Regular, Magic.LemmaFontSize);
            fntArr[fntMetaLatin] = (SystemFontProvider.Instance as ZydeoSystemFontProvider).GetLemmaFont(
                FontStyle.Italic, Magic.LemmaFontSize);
            fntArr[fntSenseId] = (SystemFontProvider.Instance as ZydeoSystemFontProvider).GetLemmaFont(
                FontStyle.Regular, Magic.LemmaFontSize * 0.8F);

            // Sense ID strings
            for (int i = 0; i != senseIdxStrings.Length; ++i)
            {
                string str = "?";
                if (i >= 0 && i < 9)
                {
                    str = (i + 1).ToString();
                }
                else
                {
                    int resInt = (int)'a';
                    resInt += i - 9;
                    str     = "";
                    str    += (char)resInt;
                }
                senseIdxStrings[i] = str;
            }
        }
Exemplo n.º 2
0
 public Font GetZhoButtonFont(FontStyle style, float size)
 {
     return(FontCollection.CreateFont(zhoButtonFontFace, size, style));
 }
Exemplo n.º 3
0
 public Font GetLemmaFont(FontStyle style, float size)
 {
     return(FontCollection.CreateFont(lemmaFontFace, size, style));
 }
Exemplo n.º 4
0
 public override Font GetSystemFont(FontStyle style, float size)
 {
     return(FontCollection.CreateFont(systemFontFace, size, style));
 }