-
Notifications
You must be signed in to change notification settings - Fork 53
Implement Font type #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Implement Font type #248
Changes from 6 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9752641
Implement Font type
Corecii c9a798f
Error when not impl future FontStyles
cca1027
Add docs
d345184
Merge remote-tracking branch 'upstream/master' into implement-font-type
5fd55f5
Delete old tests
5edf212
Add new test
ff6e9f1
Fix formatting consistency issues in spec file
Corecii 575486e
Address PR comments
2f9efd3
IgnoreGuiInset no longer saves
fb1c248
Fix typo in binary.md
Corecii 24293fa
Fix font weight casing
bb86ea1
Remove unused constructor
7b7029e
Fix snapshot tests for PascalCase fonts
9f591ad
Don't cast around u16 for xml
881f4b5
Remote Other for Font Weight and Style
feed1e1
Fix camelCase attribute on FontStyle
Corecii b25efb0
Add PR changes to CHANGELOG files
Corecii 36279e5
Fix Font types from being excluded
0df4bb7
Update database to reflect Font inclusion
4b162bb
Use if...else
bf6b91e
Fix minor formatting
3760427
to_x -> as_x
8ea3f02
Merge remote-tracking branch 'upstream/master' into implement-font-type
Corecii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.