Every officer to whom fees are allowed by law shall cause to be set up in some conspicuous place in his or her office and there constantly keep a fair list or table of his or her fees. In case of default, any such officer shall forfeit all the fees pertaining to his or her office so long as he or she shall neglect to set up and keep up the list or table of fees.