Fundamental Temperatures and Surface Gravities for HB Stars in the Field and in Globular Clusters