Through some previous questions on SE, I have recently managed to find several books on fugues that I like and am having much more success analyzing them. But I haven't gotten to the point where I have written a fugue successfully and I can tell this is because I need to develop an "ear" for writing fugues.
I have had success developing my so called "ear" in other genres by starting with simpler songs. For instance, writing cello solos before attempting to write two-hand piano pieces. In this way, I gradually built up my skills set and have been successful. I am wondering if something similar would work for fugues.
In particular, I have read that canons are very related to fugues and that canon writing is a very useful skill to have before attempting to write fugues. To put it crudely, from what I understand, fugues seem similar to canons but with a bunch of other rules and tricks that make them somewhat more complex. But both canons and fugues seem to share this element of repetition and, because of that, learning to write canons helps you to write fugues by making you better at that repetition coordination element.
Is this true? Does anyone have any knowledge, experience, or references that can confirm this idea? Are there resources that discuss the transition from canon writing to fugues?