i want to tell my boyfriend

I want to tell my boyfriend that i’m pregnant but he doesn’t want a baby. He always jokes around like hitting my stomach saying there better not be a baby in there and then he doesn’t like his cousins fiancé because she isn’t a good mother and he said if he ever had to deal with his child’s mother trying to have the baby full custody he’d take her to court until he gets full custody and she’s poor. He’s not very nice. He tells me to shut the fuck up all the time and he’s disrespectful. i’m just scared. I’m not emotionally happy or physically. i’m scared and i have to beg for his attention. I just don’t want to tell him and have a horrible time with going to court. Idk i’m just terrified