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

fix(Edit Image Node): Fix Text operation by setting Arial as default font #11125

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

ayatnkw
Copy link
Contributor

@ayatnkw ayatnkw commented Oct 7, 2024

Summary

The Edit Image node's text operation doesn't work because the default font is not set. This PR fixes this by setting the default font to Arial if it exists in the system fonts.

Related Linear tickets, Github issues, and Community forum posts

#10751 (Closed this to avoid moving the Font option into required node parameters to prevent breaking changes)

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@ayatnkw ayatnkw changed the title Node 1521 edit image text option not working fix(Edit Image Node): Fix Text operation by setting Arial as default font Oct 7, 2024
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team node/improvement New feature or request labels Oct 7, 2024
@ayatnkw ayatnkw marked this pull request as ready for review October 7, 2024 07:01
Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

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

I tested manually and it works 🎉
the only visual issue I see is when you add the option it looks like an error although if you run without selecting it works

Screenshot 2024-10-07 at 17 39 42

Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

@ShireenMissi ShireenMissi added the tests-needed This PR needs additional tests label Nov 1, 2024
Copy link
Contributor

github-actions bot commented Nov 1, 2024

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link

cypress bot commented Nov 1, 2024

n8n    Run #7668

Run Properties:  status check passed Passed #7668  •  git commit 60c1ace64b: 🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Project n8n
Branch Review master
Run status status check passed Passed #7668
Run duration 04m 26s
Commit git commit 60c1ace64b: 🌳 master 🖥️ browsers:node18.12.0-chrome107 🤖 PR User 🗃️ e2e/*
Committer aya
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 461
View all changes introduced in this branch ↗︎

Copy link
Contributor

github-actions bot commented Nov 1, 2024

✅ All Cypress E2E specs passed

@ShireenMissi ShireenMissi merged commit 60c1ace into master Nov 1, 2024
34 checks passed
@ShireenMissi ShireenMissi deleted the node-1521-edit-image-text-option-not-working branch November 1, 2024 16:49
This was referenced Nov 6, 2024
@janober
Copy link
Member

janober commented Nov 6, 2024

Got released with [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/improvement New feature or request Released tests-needed This PR needs additional tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants