James01010101 / YouTube_Shorts_Video_Editing

Youtube shorts quizzes video editing using Web and Java backend
1 stars 0 forks source link

if text doesnt wrap it is incorrectly centered on x axis #14

Open James01010101 opened 5 months ago

James01010101 commented 5 months ago
        //TODO: if text doesnt wrap it is incorrectly centered on x axis

https://github.com/James01010101/YouTube_Shorts_Video_Editing/blob/589a17600ef154ac0173168450d536269d11c085/backend/src/main/java/com/main/TextObject.java#L112

James01010101 commented 5 months ago

When writing text to the screen in my Text wrapping function it will wrap text around onto a new line once it fills the first. This works great unless for some reason the text only fits onto one line and in this case I think there just might be too many spaces added. Either way the text is incorrectly centered on the screen and is shifted right too much.