浏览代码

Updated entries with font extension info

JCash 10 月之前
父节点
当前提交
98f6c03cd2
共有 2 个文件被更改,包括 11 次插入1 次删除
  1. 4 0
      docs/en/en.json
  2. 7 1
      docs/en/manuals/font.md

+ 4 - 0
docs/en/en.json

@@ -1015,6 +1015,10 @@
                         "path": "/manuals/font",
                         "name": "Font"
                     },
+                    {
+                        "path": "/extension-font",
+                        "name": "Runtime TTF Font"
+                    },
                     {
                         "path": "/manuals/resource",
                         "name": "Resource management"

+ 7 - 1
docs/en/manuals/font.md

@@ -16,6 +16,12 @@ Fonts added to your project are automatically converted into a texture format th
 - Bitmap
 - Distance field
 
+## Runtime generated fonts
+
+For the developers that are looking to minimize the download size and runtime consumption, we have recently added a way to generate font glyphs at runtime using a .ttf font.
+
+[Runtime Fonts](/extension-font) - Use a .ttf font at runtime
+
 ## Creating a font
 
 To create a font for use in Defold, create a new Font file by selecting <kbd>File ▸ New...</kbd> from the menu, then select <kbd>Font</kbd>. You can also <kbd>right click</kbd> a location in the *Assets* browser and select <kbd>New... ▸ Font</kbd>.
@@ -161,4 +167,4 @@ For example - to generate a gradient in a shader fragment, simply write:
 
 `float horizontal_gradient = fract(var_texcoord0.y / texture_size_recip.w);`
 
-For more information about shader uniforms, see the [Shader manual](/manuals/shader).
+For more information about shader uniforms, see the [Shader manual](/manuals/shader).