Example #1
0
        ZFont IScreen.SetFont(ZFont font)
        {
            if (font == ZFont.Normal)
            {
                Dispatch(() =>
                {
                    FontsAndColorsService.FontFamily = FontsAndColorsService.NormalFontFamily;
                });
            }
            else if (font == ZFont.Fixed)
            {
                Dispatch(() =>
                {
                    FontsAndColorsService.FontFamily = FontsAndColorsService.FixedFontFamily;
                });
            }
            else
            {
                return(0);
            }

            var oldFont = this.font;

            this.font = font;
            return(oldFont);
        }
Example #2
0
        public ZFont SetFont(ZFont font)
        {
            if (font == ZFont.Normal)
            {
                FontsAndColorsService.FontFamily = FontsAndColorsService.NormalFontFamily;
            }
            else if (font == ZFont.Fixed)
            {
                FontsAndColorsService.FontFamily = FontsAndColorsService.FixedFontFamily;
            }
            else
            {
                return(0);
            }

            var oldFont = this.font;

            this.font = font;
            return(oldFont);
        }
Example #3
0
 public ZFont SetFont(ZFont font)
 {
     return(0);
 }
Example #4
0
 public Font GetFont(ZFont font)
 {
     return(_fonts[font.FontId]);
 }