Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Unified Diff: ios/showcase/core/app_delegate.mm

Issue 2646483002: [Showcase] Load Roboto as Typography font (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/showcase/core/BUILD.gn ('k') | ios/showcase/suggestions/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/core/app_delegate.mm
diff --git a/ios/showcase/core/app_delegate.mm b/ios/showcase/core/app_delegate.mm
index 788d4a773a083501095d7eb237f081da7aada7e1..fda5403304f46f7c728ab057675a3296453a1808 100644
--- a/ios/showcase/core/app_delegate.mm
+++ b/ios/showcase/core/app_delegate.mm
@@ -6,6 +6,9 @@
#import "ios/showcase/core/showcase_model.h"
#import "ios/showcase/core/showcase_view_controller.h"
+#import "ios/third_party/material_components_ios/src/components/Typography/src/MaterialTypography.h"
+#import "ios/third_party/material_roboto_font_loader_ios/src/src/MDCTypographyAdditions/MDFRobotoFontLoader+MDCTypographyAdditions.h"
+#import "ios/third_party/material_roboto_font_loader_ios/src/src/MaterialRobotoFontLoader.h"
#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
@@ -16,7 +19,7 @@
- (BOOL)application:(UIApplication*)application
didFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
- // Override point for customization after application launch.
+ [MDCTypography setFontLoader:[MDFRobotoFontLoader sharedInstance]];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
ShowcaseViewController* viewController =
[[ShowcaseViewController alloc] initWithRows:[self rowsToDisplay]];
« no previous file with comments | « ios/showcase/core/BUILD.gn ('k') | ios/showcase/suggestions/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698