Before the arrival of Togashi, there were no "cakes" in the current sense of the meaning in Japan, and the word for cakes was written as "果子," which meant fruit.
唐菓子が伝わる以前の日本には現在の意味での「菓子」は存在せず、菓子は果子とも書かれて果物を意味していた。