assets-add-google-font-to-asset-pack
Add a Google Font configuration to an asset pack, enabling the font to be used in scene text by specifying family, key, and URL.
Instructions
Add a Google Font configuration to the given asset pack. This is required if you want to use the font in a scene text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key of the font to use in the scenes. It is recommended to use the same name as the font family plus the variant, but you can use any name. It should be unique in the project. | |
| url | No | The URL of the Google Font ttf file. You can get it with the `assets-get-google-font-info` tool. | |
| family | Yes | The font family to use. The family must be exactly as in Google Fonts. You can use the `assets-get-google-font-families` tool to get the list of available font families. | |
| assetPackFileName | Yes | The relative path of the asset pack file. You can search for available asset packs using the `assets-get-available-asset-packs` tool. If there are multiple choices, you can pick any of them. You are not forced to ask the user. |