# Font Issue on Linux

**URL:** <https://forums.kodeco.com/t/font-issue-on-linux/154967>\
**Category:** Flutter Apprentice\
**Created:** [October 27, 2021, 12:43am UTC](https://forums.kodeco.com/t/font-issue-on-linux/154967 "2021-10-27T00:43:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grading-retainer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/grading-retainer/32/81494_2.png) [@grading-retainer](https://forums.kodeco.com/u/grading-retainer)\
**Post date:** [October 27, 2021, 12:43am UTC](https://forums.kodeco.com/t/font-issue-on-linux/154967/1 "2021-10-27T00:43:24Z")

</div>

In chapter 2, the font “Palatino” is used. When building the app on a Linux system (PopOS) this font does not seem to be installed. When a font is not found in Flutter it gives an ugly error (nothing related to fonts but actually about bounding boxes and infinite heights).

I’m sure I could install it and it would work just fine but wanted to suggest on the next update to the book that you use a font that is available on all platforms since the error is so obscure. Or maybe an opportunity to show how to use custom fonts bundled with the app or something.

---

<div class="post-metadata">

**Author:** ![funkyboy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/funkyboy/32/109099_2.png) [@funkyboy](https://forums.kodeco.com/u/funkyboy)\
**Post date:** [October 27, 2021, 10:44am UTC](https://forums.kodeco.com/t/font-issue-on-linux/154967/2 "2021-10-27T10:44:48Z")

</div>

We’ll look into this. Are you aware of any font that is available on all platforms?

---

<div class="post-metadata">

**Author:** ![mayank9018](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mayank9018/32/81494_2.png) [@mayank9018](https://forums.kodeco.com/u/mayank9018)\
**Post date:** [October 27, 2021, 11:29am UTC](https://forums.kodeco.com/t/font-issue-on-linux/154967/3 "2021-10-27T11:29:27Z")

</div>

There are fonts like Arial, Times New Roman, Helvetica which are available on almost all platforms but they don’t look as good, using the default font - ‘Roboto’ for Material and ‘San Fransisco’ for Cupertino would be better or if special font is required, the package google\_fonts should be used.

---

<div class="post-metadata">

**Author:** ![grading-retainer](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/grading-retainer/32/81494_2.png) [@grading-retainer](https://forums.kodeco.com/u/grading-retainer)\
**Post date:** [October 28, 2021, 12:37pm UTC](https://forums.kodeco.com/t/font-issue-on-linux/154967/4 "2021-10-28T12:37:16Z")

</div>

I’m not expert on fonts but a quick web search gave me this table:

[http://www.apaddedcell.com/sites/www.apaddedcell.com/files/fonts-article/final/index.html](http://www.apaddedcell.com/sites/www.apaddedcell.com/files/fonts-article/final/index.html)

I gave “Verdana” a try and confirmed it worked on Linux, Android (emulator) and web just fine. Since the goal of the exercise it to show a custom font we probably don’t want to use the default font (Roboto) but as @mayank9018 suggested it might be a good opportunity to show how to incorporate custom fonts such as google\_fonts.

Alternatively I saw this blog article which shows how to package your own font with the app:

> **[How do I use font family flutter? How can I change the look? -](https://sanjibsinha.com/font-family-flutter/)**
>
> Everyone wants a good-looking flutter app. We can use font family in flutter to make it look different and unique.

So you could include a font with the assets (licensed correctly of course) in the book materials and show how a custom font can be packaged with the app and used.
