2
0
Эх сурвалжийг харах

update your first 2D game font information

(cherry picked from commit a0d4f8473c5e71b8d07fb9fc2f85a65d8c0f3568)
skyace65 3 жил өмнө
parent
commit
4253813fe9

+ 6 - 5
getting_started/first_2d_game/06.heads_up_display.rst

@@ -36,21 +36,22 @@ Inspector. The default font for ``Control`` nodes is small and doesn't scale
 well. There is a font file included in the game assets called
 well. There is a font file included in the game assets called
 "Xolonium-Regular.ttf". To use this font, do the following:
 "Xolonium-Regular.ttf". To use this font, do the following:
 
 
-1. Under "Theme Overrides/Fonts/Font", choose "New DynamicFont"
+1. Under **Theme overrides > Fonts** click on the empty box and select "New DynamicFont"
 
 
 .. image:: img/custom_font1.png
 .. image:: img/custom_font1.png
 
 
-2. Click on the "DynamicFont" you added, and under "Font/Font Data",
+2. Click on the "DynamicFont" you added, and under **Font > FontData**,
    choose "Load" and select the "Xolonium-Regular.ttf" file.
    choose "Load" and select the "Xolonium-Regular.ttf" file.
 
 
 .. image:: img/custom_font2.png
 .. image:: img/custom_font2.png
 
 
+Set the "Size" property under ``Settings``, ``64`` works well.
+
+.. image:: img/custom_font3.png
+
 Once you've done this on the ``ScoreLabel``, you can click the down arrow next
 Once you've done this on the ``ScoreLabel``, you can click the down arrow next
 to the Font property and choose "Copy", then "Paste" it in the same place
 to the Font property and choose "Copy", then "Paste" it in the same place
 on the other two Control nodes.
 on the other two Control nodes.
-Set "Size" property of the "DynamicFont" under "Settings/Size". A setting of ``64`` works well.
-
-.. image:: img/custom_font3.png
 
 
 .. note:: **Anchors and Margins:** ``Control`` nodes have a position and size,
 .. note:: **Anchors and Margins:** ``Control`` nodes have a position and size,
           but they also have anchors and margins. Anchors define the origin -
           but they also have anchors and margins. Anchors define the origin -