Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.

Commit be1b9c2

Browse files
committed
Fix loading of regular noto font.
1 parent ad5f788 commit be1b9c2

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Example/EditorDemo/WPViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ - (void)viewDidLoad
3535
- (void)customizeAppearance
3636
{
3737
[super customizeAppearance];
38+
// WORKAROUND: Preload the Noto regular font to ensure it is not overridden
39+
// by any of the Noto varients. Size is arbitrary.
40+
// See: https://github.com/wordpress-mobile/WordPress-Shared-iOS/issues/79
41+
// Remove this when #79 is resolved.
42+
[WPFontManager notoRegularFontOfSize:16.0];
3843
[WPFontManager loadNotoFontFamily];
3944

4045
self.placeholderColor = [WPStyleGuide grey];

Example/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PODS:
1212
- CocoaLumberjack (~> 2.2.0)
1313
- NSObject-SafeExpectations (~> 0.0.2)
1414
- WordPressCom-Analytics-iOS (~> 0.1.0)
15-
- WordPress-iOS-Shared (0.8.0):
15+
- WordPress-iOS-Shared (0.8.2):
1616
- CocoaLumberjack (~> 2.2.0)
1717
- WordPressCom-Analytics-iOS (0.1.15)
1818

@@ -24,13 +24,13 @@ DEPENDENCIES:
2424

2525
EXTERNAL SOURCES:
2626
WordPress-iOS-Editor:
27-
:path: "../"
27+
:path: ../
2828

2929
SPEC CHECKSUMS:
3030
CocoaLumberjack: 17fe8581f84914d5d7e6360f7c70022b173c3ae0
3131
NSObject-SafeExpectations: 7d7f48df90df4e11da7cfe86b64f45eff7a7f521
3232
WordPress-iOS-Editor: 69c5d1e83aaa6e5ab6c80e067f1858de8dab4017
33-
WordPress-iOS-Shared: 4d073fb8efa96f3c902d1e1ac2557bb720f416d7
33+
WordPress-iOS-Shared: 999f5bfcf5744f94ebe9cb7459a138f5990fbf3a
3434
WordPressCom-Analytics-iOS: e1a7111255e98561c4b5a33ef4baa75a68e0d5d3
3535

3636
PODFILE CHECKSUM: c5af8aa4a9723c2a470c04ad3589d2b2934feb38

0 commit comments

Comments
 (0)