Green’s Dictionary of Slang

fortune-teller n.

[he tells you your fortune, i.e. your sentence]

a trial judge.

[UK]B.E. Dict. Canting Crew n.p.: Fortune-Tellers, c. the Judges of Life and Death, so called by the Canting Crew: Also Astrologers, Physiognomists, Chiromancers, &c.
[UK]New Canting Dict. [as cit. c.1698].
[UK]Bailey Universal Etym. Eng. Dict. [as cit. c.1698].
[UK]Grose Classical Dict. of the Vulgar Tongue n.p.: Fortune teller, or cunning man, a judge, who tells every prisoner his fortune, lot, or doom; to go before the fortune teller, lambskin man, or conjuror, to be tried at an assize.
[UK]Lex. Balatronicum.
[UK]Egan Grose’s Classical Dict. of the Vulgar Tongue.
[UK]Egan Finish to the Adventures of Tom and Jerry (1889) 241: It has always stuck in his gizzard [...] to think as how he had been werry cruelly used by the Fortune Tellers* when he was quite a mere boy [*The Judges at the Old Bailey].
[US]A.J. Pollock Und. Speaks.
[US]H. Corey Farewell, Mr Gangster! 278: Fortune teller – a judge.