You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have implemented your lib with my libgdx game but the font scales out of proportion when I use a FitViewport with my own world co-ordinates as shown in the 2 images below.
The first image shows when I don't use my FitViewport and the second one shows when I do. Kindly assist. My entire game uses the FitViewport but text simply isn't sharp...
I simply want the text in my game to scale like the first image but when using a viewport
publicclassExampleMainimplementsScreen {
Startapp;
@Overridepublicvoidshow() {
SmartFontGeneratorfontGen = newSmartFontGenerator(app);
FileHandleexoFile = Gdx.files.internal("fonts/OpenSans.ttf");
BitmapFontfontSmall = fontGen.createFont(exoFile, "exo-small", 24);
BitmapFontfontMedium = fontGen.createFont(exoFile, "exo-medium", 48);
BitmapFontfontLarge = fontGen.createFont(exoFile, "exo-large", 64);
//1st image//This one causes text to display correctly but doesn't use the FitViewportstage = newStage();
//2nd image//This one causes text to display incorrectly but uses the FitViewport (stage = newStage(app.viewport);
}
I have implemented your lib with my libgdx game but the font scales out of proportion when I use a FitViewport with my own world co-ordinates as shown in the 2 images below.
The first image shows when I don't use my FitViewport and the second one shows when I do. Kindly assist. My entire game uses the FitViewport but text simply isn't sharp...
I simply want the text in my game to scale like the first image but when using a viewport
This is how I have set up my viewports...
Any ideas? Thanks.
The text was updated successfully, but these errors were encountered: