- Code: Select all
redFont = new BitmapFont(fontFileHandle, false);
redFont.setColor(redColor);
greenFont = new BitmapFont(fontFileHandle, false);
greenFont.setColor(greenColor);
But how to do something like this when loading assets via AssetManager?
So if I create redFont:
- Code: Select all
redFont = assetManager.get(fontFileName, BitmapFont.class);
redFont.setColor(redColor);
then how can I create greenFont?
Do I understand right that I have to use another font file for this?
Or can I somehow clone redFont?
