예제 #1
0
 private void InitializeFonts()
 {
     //Load Fonts
     _titleFont    = new Killer1.Font(_textureManager.Get("title_font"), FontParser.Parse("Assets/title_font.fnt"));
     _generalFont  = new Killer1.Font(_textureManager.Get("general_font"), FontParser.Parse("Assets/general_font.fnt"));
     _computerFont = new Killer1.Font(_textureManager.Get("computer_font2"), FontParser.Parse("Assets/computer_font2.fnt"));
 }
예제 #2
0
        private void InitializeFonts()
        {
            // Fonts are loaded here.
            _titleFont = new Engine.Font(_textureManager.Get("title_font"),
                                         FontParser.Parse("title_font.fnt"));

            _generalFont = new Engine.Font(_textureManager.Get("general_font"),
                                           FontParser.Parse("general_font.fnt"));
        }
예제 #3
0
 private void InitializeFonts()
 {
     // Fonts are loaded here
     _font = new PotatoEngine.Font(_textureManager.Get("font"),
                                   FontParser.Parse("Assets/Textures/Fonts/font.fnt"));
     _titleFont = new PotatoEngine.Font(_textureManager.Get("title_font"),
                                        FontParser.Parse("Assets/Textures/Fonts/title_font.fnt"));
     _generalFont = new PotatoEngine.Font(_textureManager.Get("general_font"),
                                          FontParser.Parse("Assets/Textures/Fonts/general_font.fnt"));
 }
예제 #4
0
        private void InitializeFonts()
        {
            //Fonts are loaded here
            _fontManager.LoadFont("general_font",
                                  new ValueEngine.Font(_textureManager.Get("general_font"),
                                                       FontParser.Parse("Assets/Fonts/general_font.fnt")));


            _fontManager.LoadFont("title_font",
                                  new ValueEngine.Font(_textureManager.Get("title_font"),
                                                       FontParser.Parse("Assets/Fonts/title_font.fnt")));
        }
 public TextTestState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font           = new Font(textureManager.Get("font"), FontParser.Parse("Fonts/Arial/font.fnt"));
     _hellowWorld    = new Text("Hello", _font);
 }
예제 #6
0
        /// <summary>
        /// 初始化字体
        /// </summary>
        private void InitializeFonts()
        {
            _titleFont = new Engine.Font(_textureManager.Get("chinese_font"), FontParser.Parse("chinese_font.fnt", 2));

            _generalFont = new Engine.Font(_textureManager.Get("chinese_yy"), FontParser.Parse("chinese_yy.fnt", 1));
        }
예제 #7
0
 public SwirlEffectState(TextureManager manager)
 {
     _font = new Font(manager.Get("font"), FontParser.Parse("font.fnt"));
     _text = new Text("Hello", _font);
 }
예제 #8
0
 public FPSTestState(TextureManager textureManager)
 {
     _textureManager = textureManager;
     _font           = new Font(textureManager.Get("font"), FontParser.Parse("Fonts/Arial/font.fnt"));
     _fpsText        = new Text("FPS:", _font);
 }