Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adelle Sans Devanagari #47

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Sources/BuiltInFont.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,18 @@ public enum BuiltInFont: String, FontRepresentable, CaseIterable {

#endif

// MARK: Adelle Sans Devanagari

#if os(macOS) || os(iOS)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RomanPodymov Thanks for this!

case adelleSansDevanagariBold = "Adelle Sans Devanagari Bold"
case adelleSansDevanagariExtrabold = "Adelle Sans Devanagari Extrabold"
case adelleSansDevanagariHeavy = "Adelle Sans Devanagari Heavy"
case adelleSansDevanagariLight = "Adelle Sans Devanagari Light"
case adelleSansDevanagariRegular = "Adelle Sans Devanagari Regular"
case adelleSansDevanagariSemibold = "Adelle Sans Devanagari Semibold"
case adelleSansDevanagariThin = "Adelle Sans Devanagari Thin"
#endif

// MARK: American Typewriter

case americanTypewriter = "AmericanTypewriter"
Expand Down
28 changes: 28 additions & 0 deletions Tests/UIFontCompleteTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,34 @@ class UIFontCompleteTests: XCTestCase {
func testFontVerdanabold() {
XCTAssert(UIFont(font: .verdanaBold, size: 12.0) != nil, "Font \"Verdana-Bold\" can not be found.")
}

func testFontAdelleSansDevanagariBold() {
XCTAssert(UIFont(font: .adelleSansDevanagariBold, size: 12.0) != nil, "Font \"Adelle Sans Devanagari Bold\" can not be found.")
}

func testFontAdelleSansDevanagariExtrabold() {
XCTAssert(UIFont(font: .adelleSansDevanagariExtrabold, size: 12.0) != nil, "Font \"Adelle Sans Devanagari Extrabold\" can not be found.")
}

func testForAdelleSansDevanagariHeavy() {
XCTAssert(UIFont(font: .adelleSansDevanagariHeavy, size: 12.0) != nil, "Font \"Adelle Sans Devanagari Heavy\" can not be found.")
}

func testFontAdelleSansDevanagariLight() {
XCTAssert(UIFont(font: .adelleSansDevanagariLight, size: 12.0) != nil, "Font \"Adelle Sans Devanagari Light\" can not be found.")
}

func testFontAdelleSansDevanagariRegular() {
XCTAssert(UIFont(font: .adelleSansDevanagariRegular, size: 12.0) != nil, "Font \"Adelle Sans Devanagari Regular\" can not be found.")
}

func testFontAdelleSansDevanagariSemibold() {
XCTAssert(UIFont(font: .adelleSansDevanagariSemibold, size: 12.0) != nil, "Font \"Adelle Sans Devanagari Semibold\" can not be found.")
}

func testFontAdelleSansDevanagariThin() {
XCTAssert(UIFont(font: .adelleSansDevanagariThin, size: 12.0) != nil, "Font \"Adelle Sans Devanagari Thin\" can not be found.")
}

func testFontAmericantypewritercondensedlight() {
XCTAssert(UIFont(font: .americanTypewriterCondensedLight, size: 12.0) != nil, "Font \"AmericanTypewriter-CondensedLight\" can not be found.")
Expand Down
10 changes: 6 additions & 4 deletions UIFontComplete.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
SDKROOT = appletvos;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 11.2;
TVOS_DEPLOYMENT_TARGET = 13.0;
};
name = Debug;
};
Expand All @@ -512,7 +512,7 @@
SDKROOT = appletvos;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 11.2;
TVOS_DEPLOYMENT_TARGET = 13.0;
};
name = Release;
};
Expand Down Expand Up @@ -579,7 +579,7 @@
CODE_SIGN_STYLE = Automatic;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = "UIFontComplete-iOSTests/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.maccharoli.UIFontComplete-iOSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -599,7 +599,7 @@
CODE_SIGN_STYLE = Automatic;
GCC_C_LANGUAGE_STANDARD = gnu11;
INFOPLIST_FILE = "UIFontComplete-iOSTests/Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 11.2;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.maccharoli.UIFontComplete-iOSTests";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -667,6 +667,7 @@
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = 13.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand Down Expand Up @@ -723,6 +724,7 @@
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 3.0;
TARGETED_DEVICE_FAMILY = "1,2";
TVOS_DEPLOYMENT_TARGET = 13.0;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
Expand Down