Memeit.lol TextWrapping Problem Fixed
Description
This is in response to the task request of memeit.lol owner. I have contacted the project owner and He said that the water mark size has been solved already and the only problem need to solve now is the Text Wrapping Problem.
Task
Add Text Wrapping to Fabric.JS + Watermark edit
Proof of Work
- PR(Merged and Deployed) https://github.com/memeit-lol/memeit.lol/pull/32
Problem
Need to add textwrapping to the fabrijs Text and align center the text.
It is only a one line code modification to solve the problem but since its a task request I did it.
Details
- I have Use
Textboxtfabricjs object instead of theTextobject . UsingTextboxwill enable users to edit their text within the canvas. - I also added
breakword:trueto wrap text to break words if the user types so many words. - Also added
textAlign:'center'to make the text center whenever they type text on the textbox object.
var text = new fabric.Textbox('CLICK ON ME', {width: 200,breakWords: true, textAlign:'center',left: 0, top: 0, fontFamily: 'Impact', fontSize: 40, stroke: '#000000', strokeWidth: 3, fill: "#ffffff" });
Posted on Utopian.io - Rewarding Open Source Contributors
Leave Memeit.lol TextWrapping Problem Fixed to:
Read more #utopian-io posts
Best Posts From kizzbonez
We have not curated any of kizzbonez's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From kizzbonez
- ULOG: Development/Bug fixes #1
- ULOG: Testing Post Only for Bug Testing
- ULOG: testing
- ## ULOGS WEBSITE DEVELOPMENT #1
- ULOG: ULOG development
- MightyText - SMS Texting w/ Computer
- ULOG: ULOG Development
- GTX - Digital Direct to Garment Printer
- ULOGS : Testing post Development Jun 9 2018
- ULOGS : Testing post Development