thebigg73 / OpenSongTablet

Android port of OpenSong. Use your mobile device as a portable song book. Gareth Evans
GNU General Public License v3.0
32 stars 23 forks source link

Fix for capitalized letters in font resource name #262

Closed LudovicAL closed 6 months ago

LudovicAL commented 6 months ago

Hi Gareth, English is my second language. In attempting to deploy and run your app for the first time, from Android Studio, to my physical tablet in debug mode, I encountered the following error:

java.lang.RuntimeException font asset not found font/robotomono.ttf

The error occured while executing line 111 in class app/src/main/java/com/garethevans/church/opensongtablet/appdata/MyFonts.java.

Please find in this Pull Request a fix that solves the error.

Strangely enough, the error does not occurs when the app is installed on the same device from the Google Play Store. I am assuming the error is not happening for you, or for most contributors. The fix could nevertheless spare those in my situation from a minor headache.

thebigg73 commented 6 months ago

Thank you for this! Something weird has happened. On my device the Roboto font file is named robotomono.ttf, but the GitHub file is named RobotoMono.ttf. This is why my version and the Google Play version is fine, but your fork isn't. I'll update the font file too.