Skip to content

Commit

Permalink
[#85] line spacing 계산 공식 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Gyuni committed Sep 30, 2021
1 parent 0855a2c commit 2082976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YDS/Source/Foundation/YDSTypoStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ extension String {
internal func style(color: UIColor? = nil) -> [NSAttributedString.Key: Any] {
let paragraphStyle = NSMutableParagraphStyle()

paragraphStyle.lineSpacing = self.lineHeight - self.font.lineHeight
paragraphStyle.lineSpacing = self.font.pointSize*self.lineHeight - self.font.lineHeight
let attributes: [NSAttributedString.Key: Any] = [
.foregroundColor: color ?? UIColor.black,
.font: self.font,
Expand Down

0 comments on commit 2082976

Please sign in to comment.