Farquaad was a complete ass, tall or short. His height was obviously a huge insecurity of his and thus was free game for ridicule
Shrek had been constantly ostracized for his appearance his entire life, and even among Ogre's he's considered short, and ugly.
>Difference is though
Shrek is humble and accepts that he is who he is.
Farquaad does not.