-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement Font type * Error when not impl future FontStyles * Add docs * Delete old tests * Add new test * Fix formatting consistency issues in spec file Co-authored-by: Micah <dekkonot@rocketmail.com> * Address PR comments * Use explicit from_x and to_x * Derive and use Copy * Nicer default when writing cached_face_id * IgnoreGuiInset no longer saves (replaced by ScreenInsets) * Fix typo in binary.md Co-authored-by: Lucien Greathouse <me@lpghatguy.com> * Fix font weight casing * Remove unused constructor * Fix snapshot tests for PascalCase fonts * Don't cast around u16 for xml * Remote Other for Font Weight and Style * Fix camelCase attribute on FontStyle * Add PR changes to CHANGELOG files * Fix Font types from being excluded * Update database to reflect Font inclusion * Use if...else * Fix minor formatting * to_x -> as_x --------- Co-authored-by: set <set> Co-authored-by: Micah <dekkonot@rocketmail.com> Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
- Loading branch information
1 parent
a878a1f
commit 1227bfd
Showing
28 changed files
with
1,286 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,4 +59,5 @@ binary_tests! { | |
two_terrainregions, | ||
weldconstraint, | ||
package_link, | ||
text_label_with_font, | ||
} |
129 changes: 129 additions & 0 deletions
129
rbx_binary/src/tests/snapshots/rbx_binary__tests__util__text-label-with-font__decoded.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
--- | ||
source: rbx_binary/src/tests/util.rs | ||
assertion_line: 33 | ||
expression: decoded_viewed | ||
--- | ||
- referent: referent-0 | ||
name: TextLabel | ||
class: TextLabel | ||
properties: | ||
Active: | ||
Bool: false | ||
AnchorPoint: | ||
Vector2: | ||
- 0 | ||
- 0 | ||
Attributes: | ||
Attributes: {} | ||
AutoLocalize: | ||
Bool: true | ||
AutomaticSize: | ||
Enum: 0 | ||
BackgroundColor3: | ||
Color3: | ||
- 1 | ||
- 1 | ||
- 1 | ||
BackgroundTransparency: | ||
Float32: 0 | ||
BorderColor3: | ||
Color3: | ||
- 0.10588236 | ||
- 0.16470589 | ||
- 0.20784315 | ||
BorderMode: | ||
Enum: 0 | ||
BorderSizePixel: | ||
Int32: 1 | ||
ClipsDescendants: | ||
Bool: false | ||
Draggable: | ||
Bool: false | ||
FontFace: | ||
Font: | ||
family: "rbxasset://fonts/families/RobotoMono.json" | ||
weight: Bold | ||
style: Italic | ||
cachedFaceId: ~ | ||
LayoutOrder: | ||
Int32: 0 | ||
LineHeight: | ||
Float32: 1 | ||
MaxVisibleGraphemes: | ||
Int32: -1 | ||
NextSelectionDown: "null" | ||
NextSelectionLeft: "null" | ||
NextSelectionRight: "null" | ||
NextSelectionUp: "null" | ||
Position: | ||
UDim2: | ||
- - 0 | ||
- 0 | ||
- - 0 | ||
- 0 | ||
RichText: | ||
Bool: false | ||
RootLocalizationTable: "null" | ||
Rotation: | ||
Float32: 0 | ||
Selectable: | ||
Bool: false | ||
SelectionBehaviorDown: | ||
Enum: 0 | ||
SelectionBehaviorLeft: | ||
Enum: 0 | ||
SelectionBehaviorRight: | ||
Enum: 0 | ||
SelectionBehaviorUp: | ||
Enum: 0 | ||
SelectionGroup: | ||
Bool: false | ||
SelectionImageObject: "null" | ||
SelectionOrder: | ||
Int32: 0 | ||
Size: | ||
UDim2: | ||
- - 0 | ||
- 200 | ||
- - 0 | ||
- 50 | ||
SizeConstraint: | ||
Enum: 0 | ||
SourceAssetId: | ||
Int64: -1 | ||
Tags: | ||
Tags: [] | ||
Text: | ||
String: My Text | ||
TextColor3: | ||
Color3: | ||
- 0 | ||
- 0 | ||
- 0 | ||
TextScaled: | ||
Bool: false | ||
TextSize: | ||
Float32: 14 | ||
TextStrokeColor3: | ||
Color3: | ||
- 0 | ||
- 0 | ||
- 0 | ||
TextStrokeTransparency: | ||
Float32: 1 | ||
TextTransparency: | ||
Float32: 0 | ||
TextTruncate: | ||
Enum: 0 | ||
TextWrapped: | ||
Bool: false | ||
TextXAlignment: | ||
Enum: 2 | ||
TextYAlignment: | ||
Enum: 1 | ||
Visible: | ||
Bool: true | ||
ZIndex: | ||
Int32: 1 | ||
children: [] | ||
|
Oops, something went wrong.