Dickens gets credit for written usage:
dunce's cap, a cap of conical shape, sometimes marked with a capital D, and placed on the head of a dunce at school. 1840 Dickens Old C. Shop xxiv, And on a small shelf, the dunce's cap.

but the foolscap, from which comes the shape, is much earlier.