private void loadChalkFont() { if (chalkFontTextureAtlas != null) { return; } FontFactory.setAssetBasePath("font/"); chalkFontTextureAtlas = new BitmapTextureAtlas(activity.getTextureManager(), 512, 512, TextureOptions.BILINEAR); chalkFont = FontFactory.createStrokeFromAsset( activity.getFontManager(), chalkFontTextureAtlas, activity.getAssets(), "ChalkPaint.ttf", 50, true, Color.WHITE, 2, Color.WHITE); chalkFontTextureAtlas.load(); chalkFont.load(); }
private void loadBlackFont() { if (gameFontTextureAtlas != null) { return; } FontFactory.setAssetBasePath("font/"); gameFontTextureAtlas = new BitmapTextureAtlas(activity.getTextureManager(), 512, 512, TextureOptions.BILINEAR); blackFont = FontFactory.createStrokeFromAsset( activity.getFontManager(), gameFontTextureAtlas, activity.getAssets(), "font1.ttf", 50, true, Color.BLACK, 2, Color.BLACK); gameFontTextureAtlas.load(); blackFont.load(); }