These instructions on how "To make a Hedge Hog" are from 1817:
Take 1lb. Valentia almonds; blanch and beat them very fine, with a little rose water; mix in the yolks of six eggs; whisk up the whites of four eggs very stiff; mix all together, with half a pint of cream, and sweeten it with beat sugar to your taste; set the whole in a stew pan on a clear fire, and stir it till it is thick enough to model into the shape of a hedge hog; put a small currant for each eye, and stick it all over with cut almonds for the bristles of the hedge hog; then set it on a dish, and pour over it a rich custard.They may have been reprinted from this 1747 source (hat tip to reader Sylvia). The photo and recipe were included in an interesting article reviewing the history of ornamental confectionery.
This kind of novelty cake stretches back much further than I realised. I knew about the spectacular sugar sculptures and ices that would have featured in Grand Desserts, the final course of upper class formal dinners in the eighteenth and nineteenth centuries, but when I started browsing through our holdings of confectionery manuals I wasn’t prepared for the quirkiness of some of the dishes, combining dazzlingly difficult techniques with witty concepts.More at the link, which I found in a newly-discovered blog: Echoes from the Vault - " a blog from the Special Collections of the University of St Andrews." There must be an abundance of fascinating material there.
The earliest book on confectionery in our rare book collections is the first edition of Mrs Mary Eales’s Receipts, printed in 1718.