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

Automatic text wrapping #39

Open
Rodak123 opened this issue Nov 23, 2022 · 5 comments
Open

Automatic text wrapping #39

Rodak123 opened this issue Nov 23, 2022 · 5 comments

Comments

@Rodak123
Copy link
Contributor

Right now for rendering a new line you must add a new element in the JSON string array.

@shiffman already suggested using the text() function where you can specify the width and height of the textbox.

@shiffman
Copy link
Member

I'll work on this!

@shiffman shiffman mentioned this issue Nov 23, 2022
@shiffman
Copy link
Member

@Rodak123 also related to this, do we need separate font setting for each slide, maybe it's just one font setting for the entire game in slide_data.json?

@Rodak123
Copy link
Contributor Author

Rodak123 commented Nov 24, 2022

Maybe, but I'm not sure if there are any pages with different font settings.

@shiffman
Copy link
Member

I think there should be a default font for the entire game and then if a page can optionally override the default font.

@Rodak123
Copy link
Contributor Author

Rodak123 commented Dec 8, 2022

I noticed that the text wrapping has some issues:

  1. When I turned the title "Many Kinds of people made the trip to Oregon."
    from:

    ["Many kinds of people made the", "trip to Oregon."]

    to:

    "Many kinds of people made the trip to Oregon."

    A new line was added:
    wArrays
    woArrays

  2. When the text string length exceeds 22 characters it freaks out:

    gerW
    Here I split the Seien Sie... option string to an array:
    gerC

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

No branches or pull requests

2 participants