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

Add "text as image" node #2125

Merged
merged 16 commits into from
Aug 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Corrected 'type' error
  • Loading branch information
adegerard committed Aug 19, 2023
commit 57e64c3bbfb7708beed61cadccca001ea6531d12
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def text_as_image_node(
position: TextAsImagePosition,
) -> np.ndarray:
font_path = os.path.join(
os.path.dirname(sys.modules["__main__"].__file__),
os.path.dirname(sys.modules["__main__"].__file__), # type: ignore
f"fonts",
f"{TEXT_AS_IMAGE_FONTS[font_name]['path']}",
)
Expand Down