Skip to content

Commit

Permalink
Merge pull request #47 from RomanPodymov/main
Browse files Browse the repository at this point in the history
Adelle Sans Devanagari
  • Loading branch information
Nirma authored Oct 26, 2023
2 parents b7d1db2 + 73d8572 commit db8ecc5
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
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)
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

0 comments on commit db8ecc5

Please sign in to comment.