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); }
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); }
public ZFont SetFont(ZFont font) { return(0); }
public Font GetFont(ZFont font) { return(_fonts[font.FontId]); }