Unfortunately sometimes the safest thing you can do is remain hidden, especially if your family is not accepting of you. I don't know what the situation is like where you live, but I personally ended up meeting a lot of LGBT people when I went to college, in a big city. Even some professors were LGBT. People tend to be more accepting in places like that.
Some people can change their opinions after a while, even really homophobic family members. But I recommend finding your own place and getting your own financial independence before having this kind of discussion with them, because a lot of parents do abandon their kids for being gay. So you have to hang in there until then.
However, I can say that you don't actually have to come out in order to stand up against homophobia. I don't know exactly what your situation is, but you can start slow, like for example making a point to not laugh at a homophobic joke. Don't even make a big deal out of it. Just act like someone told you a really unfunny joke, and then people will be forced to confront why is it that they find it funny. Or at the very least they'll stop telling these jokes to you because they know they won't get a reaction.
And if someone mentions how gross it is when two guys kiss, just tell them: "I don't think it is" or something along those lines. Just make it sound like a minor disagreement, your own opinion on the topic. A lot of times people get really upset when someone disagrees with them, but you have to stand your ground. (but again, only do that if it's safe for you.)
I feel like I can't give too much useful advice because when I was younger I was a really hot headed kid who spoke my mind about everything that pissed me off, but thankfully my parents were never really the type to disown me over disagreements. Not all parents are like this though, and that's why it's safer to have these talks once you live on your own. If your family and friends continue being horrible people, then unfortunately you'll have to cut them away from your life entirely.