I downloaded some fonts for Android Studio and I had to rename the files to be only lowercase because it didn't let me save them otherwise.
For instance, I have the file "bauhausregular.ttf"
However, when I reference the fonts on the activity_main.xml file, I have to put:
<TextView
android:id="@+id/textView"
android:layout_marginTop="10dp"
android:textSize="12dp"
android:font="@font/BauhausRegular"
android:textFontWeight="300"/>
because if I put: "bauhausregular", it doesn't find it.
Then, when I build the project, I get this error:
Android resource linking failed com.example.myapp.app-mergeDebugResources-35:/layout/activity_main.xml:99: error: resource font/BauhausRegular (aka com.example.myapp:font/BauhausRegular) not found. error: failed linking file resources.
I can see in the Design view, that the fonts change even if it doesn't work when I build the project.
How can I solve this?