During the famine in Ansbach in the middle of the 18th century, Hofmann's parents had emigrated from Pretzendorf (now Himmelkron), near Bayreuth, to Bohemia, where they lived in very poor circumstances.