Yes I did, very similar - he went on to vandalise a car on my drive after I already had a court restraining order in place.
He didn't turn up to the first trial date, and was late to the second - but they had already decided to try him in his absence. He turned up after I had given my testimony. He had pleaded not guilty, saying I had vandalised the car myself to frame him! No witnesses, and only a text to back me up. It played out as the PP says - his lawyer told him to plead guilty when he did turn up.
Stay very calm, stay solid in your truth, be ruthlessly honest, even if it makes you look bad (I'd tried to persuade him to own up to the damage and pay for it - it wasn't my car - before I called the Police).
I live in a small town too, and he had been blackening my name for years, even while we were together. The truth is that the people who matter won't believe him, and those who believe him either don't know you, or are frenemies. I actually grew to love it when I'd meet someone new and they would slowly come to the realisation that I am THAT ChristmasFluff - I'm so far from who he says I am.
As Plato (or someone!) says, 'when men speak ill of thee, live so as nobody may believe them.'