feat: 引入第三方字体库

This commit is contained in:
jinyaqiu 2025-08-15 21:51:11 +08:00
parent 095d95b420
commit 50bff7cf12
8 changed files with 42 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -29,9 +29,22 @@
ABB4E2082E4B75D900660198 /* wake.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = wake.app; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
AB4FA8642E4F7074005D9955 /* Exceptions for "wake" folder in "wake" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = ABB4E2072E4B75D900660198 /* wake */;
};
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
ABB4E20A2E4B75D900660198 /* wake */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
AB4FA8642E4F7074005D9955 /* Exceptions for "wake" folder in "wake" target */,
);
path = wake;
sourceTree = "<group>";
};
@ -283,6 +296,8 @@
DEVELOPMENT_TEAM = GB3VPJ54BD;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = wake/Info.plist;
INFOPLIST_KEY_LSApplicationCategoryType = "";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
@ -310,6 +325,8 @@
DEVELOPMENT_TEAM = GB3VPJ54BD;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = wake/Info.plist;
INFOPLIST_KEY_LSApplicationCategoryType = "";
INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchScreen_Generation = YES;

View File

@ -7,7 +7,7 @@
<key>wake.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>3</integer>
</dict>
</dict>
</dict>

View File

@ -39,6 +39,8 @@ struct ContentView: View {
//
Spacer().frame(height: UIApplication.shared.windows.first?.safeAreaInsets.top ?? 0)
Text("Wake")
.font(.custom("SankeiCutePopanime", size: 27))
// -
HStack {
//

10
wake/Info.plist Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIAppFonts</key>
<array>
<string>SankeiCutePopanime.ttf</string>
</array>
</dict>
</plist>

Binary file not shown.

View File

@ -6,9 +6,21 @@
//
import SwiftUI
import UIKit
@main
struct WakeApp: App {
// init() {
// //
// print("\n=== ===")
// for family in UIFont.familyNames.sorted() {
// print("\n\(family):")
// for name in UIFont.fontNames(forFamilyName: family).sorted() {
// print(" - \(name)")
// }
// }
// }
var body: some Scene {
WindowGroup {
ContentView()