Skip to content

Commit 913ccf9

Browse files
authored
Make Enum.Font and DataType.Font reference each other (#942)
## Changes Adds a `See Also` tag to both the `Font` enum and DataType linking them together. Created to solve DevForum Documentation Request; https://devforum.roblox.com/t/clarify-differences-between-%E2%80%98font%E2%80%99-datatype-and-enum-in-documentation/3181603 ## Checks By submitting your pull request for review, you agree to the following: - [x] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [x] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [x] To the best of my knowledge, all proposed changes are accurate. ---------
1 parent ae84230 commit 913ccf9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

content/en-us/reference/engine/datatypes/Font.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ description: |
1414
`Datatype.Font` is used by the `Class.TextLabel.FontFace`,
1515
`Class.TextButton.FontFace`, and `Class.TextBox.FontFace` properties.
1616
17+
See also `Enum.Font` as an older alternative to this datatype that is required by some
18+
methods and properties (note that most fonts cannot be represented with this enum).
19+
1720
#### Font List
1821
1922
| Name | Asset ID | Weights |

content/en-us/reference/engine/enums/Font.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ summary: ''
44
description: |
55
The `Enum.Font` enum is used in `Class.TextBox`, `Class.TextLabel`, and
66
`Class.TextButton` to determine how the GUI element will render its text.
7+
8+
See also `Datatype.Font` as a newer alternative to this enum which encapsulates fonts
9+
as a datatype and provides access to more fonts than this enum allows.
710
code_samples:
811
tags: []
912
deprecation_message: ''

0 commit comments

Comments
 (0)