Skip to content
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

Font Family Drowpdown #12920

Merged
merged 23 commits into from
Sep 15, 2022
Merged

Font Family Drowpdown #12920

merged 23 commits into from
Sep 15, 2022

Conversation

amritanarasimhan
Copy link
Contributor

Created a dropdown menu for font family options, with the ability to add custom fonts beyond the ones already provided

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@azure-pipelines
Copy link

@sebavan sebavan requested a review from RaananW August 31, 2022 14:06
Copy link
Contributor

@carolhmj carolhmj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome job! Just have some considerations to make.

@carolhmj
Copy link
Contributor

carolhmj commented Aug 31, 2022

Doing some testing, I caught this case where if we change a font style and go back to normal style, the style dropdown disappears:
font-dropdown

EDIT: Fixed 👍

@carolhmj
Copy link
Contributor

carolhmj commented Aug 31, 2022

Also, if I click on the custom font, click on the textbox and click away without typing anything, it fires the "font doesn't exist in browser" warning. It would be better for the user if this warning didn't fire in case there isn't anything on the input:
image

EDIT: Fixed 👍

@carolhmj
Copy link
Contributor

When clicking away from the font custom input if the input is invalid, the text block "jumps"
https://user-images.githubusercontent.com/6002144/187727609-6b79a01f-9aa9-467a-8c92-d3922c7fe7ee.mp4

@carolhmj
Copy link
Contributor

carolhmj commented Aug 31, 2022

If I set a custom font to an element and then select another element, the custom font is still selected in the dropdown:
font-dropdown-2

Edit: Fixed 👍

@RaananW RaananW requested a review from carolhmj September 1, 2022 11:13
@carolhmj
Copy link
Contributor

carolhmj commented Sep 1, 2022

When opening this layout: #BC81Y2#3 and clicking on the "Sales" text label, I got a crash:
image

EDIT: Same with this layout: #D5CXGS#2. This is probably related to opening a layout with fonts that haven't been loaded yet.

EDIT2: Fixed! Great work!

Copy link
Contributor

@carolhmj carolhmj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting closer! Just the remaining conversations and issues to solve 😄

Copy link
Member

@RaananW RaananW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work :-) And a very important PR.

Just have a few suggestions and changes. I will also wait for @carolhmj to approve it as well.

@amritanarasimhan amritanarasimhan requested review from RaananW and carolhmj and removed request for RaananW and carolhmj September 14, 2022 19:34
@RaananW
Copy link
Member

RaananW commented Sep 15, 2022

There is a formatting issue, and one more when the editor is in pop up mode (in the playground).

The alerts are being triggered on the original window host and not on the popup window. You need to use this.props.globalState.hostWindow.alert instead of only alert

Copy link
Contributor

@carolhmj carolhmj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small question :D

Copy link
Contributor

@carolhmj carolhmj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Thank you so much for your work! 🥳

@sebavan sebavan enabled auto-merge September 15, 2022 18:25
auto-merge was automatically disabled September 15, 2022 18:46

Head branch was pushed to by a user without write access

@sebavan sebavan enabled auto-merge September 15, 2022 18:48
@sebavan sebavan merged commit 9a177b0 into BabylonJS:master Sep 15, 2022
RaananW pushed a commit that referenced this pull request Dec 9, 2022
Font Family Drowpdown

Former-commit-id: e8bcf607180eeeaf52df25e5e7e68d9ea2caf742
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants