Skip to content

Commit

Permalink
Scale typographic feature examples like body text instead of control …
Browse files Browse the repository at this point in the history
…text.
  • Loading branch information
ZevEisenberg committed Feb 7, 2017
1 parent 9e54689 commit a24860c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Example-iOS/DemoStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ enum DemoStrings {
let garamondStyle = StringStyle(
.font(UIFont(name: "EBGaramond12-Regular", size: 24)!),
.lineHeightMultiple(1.2),
.adapt(.control)
.adapt(.body)
)

let digits = "\n0123456789"
Expand All @@ -293,7 +293,7 @@ enum DemoStrings {
let garamondStyle = StringStyle(
.font(UIFont(name: "EBGaramond12-Regular", size: 24)!),
.lineHeightMultiple(1.2),
.adapt(.control)
.adapt(.body)
)

let string = "Today is my <number>111<ordinal>th</ordinal></number> birthday!"
Expand All @@ -312,7 +312,7 @@ enum DemoStrings {
let garamondStyle = StringStyle(
.font(UIFont(name: "EBGaramond12-Regular", size: 24)!),
.lineHeightMultiple(1.2),
.adapt(.control)
.adapt(.body)
)

let string = "<name>Johnny</name> was a little boy, but <name>Johnny</name> is no more, for what he thought was <chemical>H<number>2</number>O</chemical> was really <chemical>H<number>2</number>SO<number>4</number></chemical>."
Expand All @@ -330,7 +330,7 @@ enum DemoStrings {
static let stylisticAlternatesExample: NSAttributedString = {
let systemFontStyle = StringStyle(
.font(.systemFont(ofSize: 18)),
.adapt(.control)
.adapt(.body)
)

let password = "68Il14"
Expand Down

0 comments on commit a24860c

Please sign in to comment.