Skip to content

Commit

Permalink
Fix: Fix setter correct fonts to attributted strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Viciano committed Dec 28, 2017
1 parent 2332c86 commit a80fcf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/GIGUtils/String/StyledString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public extension NSAttributedString {

private class func createHtml(from string: String, fontName: String, pointSize: CGFloat, color: UIColor, aligment: NSTextAlignment) -> String {
let textAligment = aligmentString(fromAligment: aligment)
let style = "<style>body{color:\(color.hexString(false)); font-family: '\(fontName)'; font-size: \(String(format: "%.0f", pointSize)))px; text-align: \(textAligment);}</style>"
let style = "<style>body{color:\(color.hexString(false)); font-family: '\(fontName)'; font-size: \(String(format: "%.0f", pointSize))px; text-align: \(textAligment);}</style>"
return style + string
}
}
Expand Down

0 comments on commit a80fcf8

Please sign in to comment.