Replaced the main application font.

This commit is contained in:
Leon Styhre 2021-01-28 20:06:12 +01:00
parent 4d8b0deb9b
commit 0974e7b593
9 changed files with 14 additions and 15 deletions

View file

@ -65,6 +65,7 @@ Many bugs have been fixed, and numerous features that were only partially implem
* Overhaul of the screensaver (the game info overlay now works correctly for instance) * Overhaul of the screensaver (the game info overlay now works correctly for instance)
* Added support for jumping to the start and end of gamelists and menus using the controller trigger buttons (or equivalent keyboard mappings) * Added support for jumping to the start and end of gamelists and menus using the controller trigger buttons (or equivalent keyboard mappings)
* Many additional quality of life improvements and removal of GUI inconsistencies * Many additional quality of life improvements and removal of GUI inconsistencies
* Replaced the main application font with Fontfabric Akrobat
* Replaced the on and off button icons with new graphics * Replaced the on and off button icons with new graphics
* Replaced the checked checkmark icon with new graphics * Replaced the checked checkmark icon with new graphics
* Made ScrollableContainer (used for the gamelist game descriptions) fade in as the text position is reset * Made ScrollableContainer (used for the gamelist game descriptions) fade in as the text position is reset

View file

@ -56,6 +56,9 @@ http://www.libsdl.org
# Resources # Resources
Akrobat font \
https://www.fontfabric.com/fonts/akrobat
DejaVu font \ DejaVu font \
https://dejavu-fonts.github.io https://dejavu-fonts.github.io
@ -65,15 +68,12 @@ https://android.googlesource.com/platform/frameworks/base
Font Awesome \ Font Awesome \
https://fontawesome.com https://fontawesome.com
GNU FreeFont \ GNU FreeFont (FreeMono) \
https://www.gnu.org/software/freefont https://www.gnu.org/software/freefont
Nanum font \ Nanum font \
https://hangeul.naver.com https://hangeul.naver.com
Open Sans font \
https://fonts.google.com/specimen/Open+Sans
MAME ROM information \ MAME ROM information \
https://www.mamedev.org https://www.mamedev.org

View file

@ -219,24 +219,22 @@ std::vector<std::string> getFallbackFontPaths()
// Standard fonts, let's include them here for exception handling purposes even though that's // Standard fonts, let's include them here for exception handling purposes even though that's
// not really the correct location. (The application will crash if they are missing.) // not really the correct location. (The application will crash if they are missing.)
ResourceManager::getInstance()-> ResourceManager::getInstance()->getResourcePath(":/fonts/Akrobat-Regular.ttf");
getResourcePath(":/fonts/opensans_hebrew_condensed_light.ttf"); ResourceManager::getInstance()->getResourcePath(":/fonts/Akrobat-SemiBold.ttf");
ResourceManager::getInstance()->
getResourcePath(":/fonts/opensans_hebrew_condensed_regular.ttf");
// Vera sans Unicode: // Vera sans Unicode.
fontPaths.push_back(ResourceManager::getInstance()-> fontPaths.push_back(ResourceManager::getInstance()->
getResourcePath(":/fonts/DejaVuSans.ttf")); getResourcePath(":/fonts/DejaVuSans.ttf"));
// Freefont monospaced: // GNU FreeFont monospaced.
fontPaths.push_back(ResourceManager::getInstance()-> fontPaths.push_back(ResourceManager::getInstance()->
getResourcePath(":/fonts/FreeMono.ttf")); getResourcePath(":/fonts/FreeMono.ttf"));
// Various languages, such as Japanese and Chinese: // Various languages, such as Japanese and Chinese.
fontPaths.push_back(ResourceManager::getInstance()-> fontPaths.push_back(ResourceManager::getInstance()->
getResourcePath(":/fonts/DroidSansFallbackFull.ttf")); getResourcePath(":/fonts/DroidSansFallbackFull.ttf"));
// Korean: // Korean.
fontPaths.push_back(ResourceManager::getInstance()-> fontPaths.push_back(ResourceManager::getInstance()->
getResourcePath(":/fonts/NanumMyeongjo.ttf")); getResourcePath(":/fonts/NanumMyeongjo.ttf"));
// Font Awesome icon glyphs, used for star-flagging favorites in the gamelists: // Font Awesome icon glyphs, used for star-flagging favorites in the gamelists.
fontPaths.push_back(ResourceManager::getInstance()-> fontPaths.push_back(ResourceManager::getInstance()->
getResourcePath(":/fonts/fontawesome-webfont.ttf")); getResourcePath(":/fonts/fontawesome-webfont.ttf"));

View file

@ -31,8 +31,8 @@ class TextCache;
#define FONT_SIZE_LARGE (static_cast<unsigned int>(0.085f * \ #define FONT_SIZE_LARGE (static_cast<unsigned int>(0.085f * \
std::min(Renderer::getScreenHeight(), Renderer::getScreenWidth()))) std::min(Renderer::getScreenHeight(), Renderer::getScreenWidth())))
#define FONT_PATH_LIGHT ":/fonts/opensans_hebrew_condensed_light.ttf" #define FONT_PATH_LIGHT ":/fonts/Akrobat-Regular.ttf"
#define FONT_PATH_REGULAR ":/fonts/opensans_hebrew_condensed_regular.ttf" #define FONT_PATH_REGULAR ":/fonts/Akrobat-SemiBold.ttf"
enum Alignment { enum Alignment {
ALIGN_LEFT, ALIGN_LEFT,

Binary file not shown.

Binary file not shown.

Binary file not shown.