The common ways to attach canvas to a boat is snaps and zippers. Mine has a combination of both.
My canvas has zippers on the top and sides, with snaps on the bottom.
The zippers are attached to the boat using a narrow panel w/ a zipper on one side and a Keder welt on the other side.
That Keder welt is slid into an awning rail screwed onto the boat.
There are probably other solutions. Check the Sailrite site.
https://www.sailrite.com/
https://live.staticflickr.com/4398/36298906361_dcb49c0b97_c.jpg
https://live.staticflickr.com/4389/36298906321_c1f6b48148_c.jpg