Add Google Font to yocto build

I need to add Google fonts directly in the yocto build. Those fonts must be recognized by Qt because I have to use them in the software GUI.
Those are the fonts:

  • Montserrat
  • Open Sans
  • Yantramanav

How can I do? I could not find resources on this topic.

Thanks for any help you can give.


You would write a recipe which does whatever needed to get packages with your fonts and then add those packages to your image.

e.g. have a look at this recipe which does package the liberartion ttf fonts.


Ok thanks. In the next days I’ll take a look to this recipe.

When I get some news I will write again.

It’s been a while, but I update you.

Starting from that recipe I managed to install custom fonts and licensing.

I used also this recipe to help me to install also the license into the system.

Thanks a lot.

Great that this works. Thanks for the feedback.