diff --git a/components/Typography/src/UIFont+MaterialTypography.m b/components/Typography/src/UIFont+MaterialTypography.m index 71eda823da6..52ebe2f4451 100644 --- a/components/Typography/src/UIFont+MaterialTypography.m +++ b/components/Typography/src/UIFont+MaterialTypography.m @@ -13,11 +13,19 @@ #import "UIFont+MaterialTypography.h" +#import "MDCTypography.h" #import "UIFontDescriptor+MaterialTypography.h" @implementation UIFont (MaterialTypography) + (UIFont *)mdc_preferredFontForMaterialTextStyle:(MDCFontTextStyle)style { + // Due to the way iOS handles missing glyphs in fonts, we do not support using a custom font + // loader with Dynamic Type. + idfontLoader = [MDCTypography fontLoader]; + if (![fontLoader isKindOfClass:[MDCSystemFontLoader class]]) { + NSLog(@"MaterialTypography : Custom font loaders are not compatible with Dynamic Type."); + } + UIFontDescriptor *fontDescriptor = [UIFontDescriptor mdc_preferredFontDescriptorForMaterialTextStyle:style];