![]()
Hey everyone! Welcome to another Android tutorial. Today, we will explore how to add a bit of flair to your apps by using Google Fonts with Android Compose. It’s a simple yet effective way to make your app stand out. Google Fonts offers many options, ensuring you find the perfect fit for your app’s style. Let’s dive in and see how easy it is to spruce up your UI with the right fonts.
The initial step is to navigate to the Manrope Font page on Google Fonts and procure the font by selecting Get font, followed by the Download all option. This will allow you to download a ZIP file containing the font files.

Get font

Download all
After downloading and opening the ZIP file, you’ll discover a static directory containing seven TrueType Font (TTF) files. TrueType Fonts are versatile and widely supported font files suitable for Android applications.
Now, rename each TTF file to lowercase, using underscores (_) as separators. This is necessary because Android resource directories only accept filenames consisting of lowercase letters and underscores.

inside /static rename each .ttf file
Kickstart a new endeavor by creating an Empty Project in Android using your fonts. Navigate through the project structure to locate the res directory. Perform a right-click operation here, and from the context menu, select New, then opt for Android Resource Directory.

A configuration dialog will emerge, prompting you to define the particulars of your new resource. Enter font as the directory name and also choose font as the resource type, establishing a dedicated space for your typographic assets.

Once your font directory is successfully established within the res folder, the next move is to transfer the previously renamed TTF files from the static folder to this new location. This can be efficiently accomplished by utilizing the drag-and-drop.
