I cursed in front of my father when he asked me not to
What happened after you cursed?
I told him to shut his mouth
Sounds like you were upset.  However, really isn't nice to swear in front of someone who you know finds it offensive, especially your dad!
I don't give a shit what he likes. He was being rude and so I don't have to listen to him.
You are blaming your father for the whole situation but your cursing is bothersome to others and you started all of this. Take into consideration other people's sensitivity to what you might say.