They guide you are looking at does not focus on Material 3 but on an older version of Angular Material. You might better have a look at the official Material docs.
This guide focusses on custom typography with Material 3 using Angular Material: https://material.angular.io/guide/typography