Meh. Depends on the dog.
RE: your post: The world is upside down Why Dogs Do Not Like to be Hugged, especially this advice near the end of the article...
“Never put your face too close an unknown dog or attempt to hug it or kiss it; many dogs dislike people invading their space and may become defensive, as dogs do not hug or kiss. Rather allow the dog approach you first, sniff you and then if the dog appears friendly and the owner allows it, your best bet is to give a pat on the chest.”
Thereby looming threateningly over the strange dog with your face its closest bite target.
Um yeah. I hope no children read that one.