Skip to content

Commit a799ac2

Browse files
committed
Add Segoe font to macOS app
1 parent a7a1393 commit a799ac2

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

macos/rngallery-macOS/Info.plist

+2
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@
4343
<true/>
4444
<key>NSSupportsSuddenTermination</key>
4545
<true/>
46+
<key>ATSApplicationFontPath</key>
47+
<string>Segoe MDL 2 Assets.ttf</string>
4648
</dict>
4749
</plist>
146 KB
Binary file not shown.

macos/rngallery.xcodeproj/project.pbxproj

+6-9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
514201552437B4B40078DB4F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 514201532437B4B40078DB4F /* Main.storyboard */; };
1313
514201582437B4B40078DB4F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 514201572437B4B40078DB4F /* main.m */; };
1414
7F9A7D0A9B296E8245E632D4 /* libPods-rngallery-macOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D2D6ADB6FFF96DD03F032D49 /* libPods-rngallery-macOS.a */; };
15+
AC5FF1622C3E211D00CFF5CF /* Segoe MDL2 Assets.ttf in Resources */ = {isa = PBXBuildFile; fileRef = AC5FF1612C3E211D00CFF5CF /* Segoe MDL2 Assets.ttf */; };
1516
/* End PBXBuildFile section */
1617

1718
/* Begin PBXFileReference section */
@@ -26,6 +27,7 @@
2627
514201562437B4B40078DB4F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2728
514201572437B4B40078DB4F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
2829
514201592437B4B40078DB4F /* rngallery.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = rngallery.entitlements; sourceTree = "<group>"; };
30+
AC5FF1612C3E211D00CFF5CF /* Segoe MDL2 Assets.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Segoe MDL2 Assets.ttf"; sourceTree = "<group>"; };
2931
D2D6ADB6FFF96DD03F032D49 /* libPods-rngallery-macOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-rngallery-macOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3032
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
3133
/* End PBXFileReference section */
@@ -61,6 +63,7 @@
6163
5142014A2437B4B30078DB4F /* rngallery-macOS */ = {
6264
isa = PBXGroup;
6365
children = (
66+
AC5FF1612C3E211D00CFF5CF /* Segoe MDL2 Assets.ttf */,
6467
5142014B2437B4B30078DB4F /* AppDelegate.h */,
6568
5142014C2437B4B30078DB4F /* AppDelegate.mm */,
6669
514201512437B4B40078DB4F /* Assets.xcassets */,
@@ -78,7 +81,6 @@
7881
03DF0E512707AAC72533EDB0 /* Pods-rngallery-macOS.debug.xcconfig */,
7982
00399E4B91D8F40E1C32D84B /* Pods-rngallery-macOS.release.xcconfig */,
8083
);
81-
name = Pods;
8284
path = Pods;
8385
sourceTree = "<group>";
8486
};
@@ -202,6 +204,7 @@
202204
buildActionMask = 2147483647;
203205
files = (
204206
514201522437B4B40078DB4F /* Assets.xcassets in Resources */,
207+
AC5FF1622C3E211D00CFF5CF /* Segoe MDL2 Assets.ttf in Resources */,
205208
514201552437B4B40078DB4F /* Main.storyboard in Resources */,
206209
);
207210
runOnlyForDeploymentPostprocessing = 0;
@@ -464,10 +467,7 @@
464467
ONLY_ACTIVE_ARCH = YES;
465468
OTHER_CFLAGS = "$(inherited)";
466469
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
467-
OTHER_LDFLAGS = (
468-
"$(inherited)",
469-
" ",
470-
);
470+
OTHER_LDFLAGS = "$(inherited) ";
471471
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
472472
SDKROOT = iphoneos;
473473
USE_HERMES = false;
@@ -524,10 +524,7 @@
524524
MTL_ENABLE_DEBUG_INFO = NO;
525525
OTHER_CFLAGS = "$(inherited)";
526526
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
527-
OTHER_LDFLAGS = (
528-
"$(inherited)",
529-
" ",
530-
);
527+
OTHER_LDFLAGS = "$(inherited) ";
531528
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
532529
SDKROOT = iphoneos;
533530
USE_HERMES = false;

src/HomePage.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ const createStyles = () =>
3030
scrollView: {
3131
paddingRight: 20,
3232
},
33-
icon: {
34-
fontFamily: 'Segoe MDL2 Assets',
35-
fontSize: 16,
36-
},
3733
heroGradient: {
3834
// position: 'absolute',
3935
// width: '100%',

0 commit comments

Comments
 (0)