# 8.2 Fonts

> Use custom fonts in your Flutter app, from font files and from the google_fonts package.

- URL: https://www.appwriters.dev/courses/master-flutter/ch08-assets/ls02-fonts
- Course: Master Flutter (https://www.appwriters.dev/courses/master-flutter)
- Chapter: 8. Assets

---

Fonts are a great way to improve the look of your app. Flutter allows you to use custom fonts in your app.

## Projects

### 1. Your Name in Two Different Custom Fonts

Create a new Flutter project and add two custom fonts to it. Display your name in each of the two fonts.

> Hint: You can download free fonts from [Google Fonts](https://fonts.google.com)

### 2. Font in Themes

Create a new Flutter project and add two custom fonts to it. Change the app's theme so that headlines use one of the two fonts and body text uses the other (hint: `TextTheme` styles such as `headlineMedium` and `bodyMedium`). Then create a simple layout with a headline and an article.

### 3. Quotes App

Create the following user interface that displays quotes from famous people. The quote and the author's name should be written in different fonts.

![Quotes UI](/images/courses/master-flutter/ch08-ls02-pr03.png)

## Resources

- [Google Fonts](https://fonts.google.com/) to get free custom fonts
- [Pubspec font section](https://docs.flutter.dev/cookbook/design/fonts) to know how to add fonts to your project
- [Google Fonts package](https://pub.dev/packages/google_fonts)
- [Using Custom Fonts](https://docs.flutter.dev/cookbook/design/fonts)
