From ec3b28547d3b126c2d928153b5b5a0e01f47e205 Mon Sep 17 00:00:00 2001 From: Paul V Craven Date: Fri, 9 Oct 2026 08:59:17 -0500 Subject: [PATCH] Add font name, license and pyglet tips to the text guide The "Fonts that come with your game" section now says that some font viewers add the style to a font's name and that the file path works instead, where to find freely licensed fonts and to ship their license, and links pyglet's text guide (#1171). Co-Authored-By: Claude Opus 5.5 --- doc/programming_guide/text.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/programming_guide/text.rst b/doc/programming_guide/text.rst index a32f83b96..b9ef757ac 100644 --- a/doc/programming_guide/text.rst +++ b/doc/programming_guide/text.rst @@ -196,7 +196,14 @@ file name: text = arcade.Text("Hello", 10, 10, font_name="My Font") The name is set inside the font file. Your operating system's font -viewer shows it. +viewer shows it, though some add the style, such as +``"Grand Hotel, Regular"`` for a font named ``"Grand Hotel"``. If you're +not sure of the name, use the file's path as ``font_name`` instead. + +Many free fonts, such as most on `Google Fonts `_, +use the SIL Open Font License, which lets you ship them with your game. +Include the font's license file with it. For more about fonts, see pyglet's +:doc:`text guide `. Fonts that come with Arcade ~~~~~~~~~~~~~~~~~~~~~~~~~~~