Skip to content

Commit

Permalink
Merge pull request airbnb#876 from airbnb/btw/kerningFix
Browse files Browse the repository at this point in the history
Fixed Kerning Bug
  • Loading branch information
buba447 committed Apr 18, 2019
2 parents 0fe552d + ff327bd commit 28610fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class TextCompositionLayer: CompositionLayer {
let fillColor = rootNode?.textOutputNode.fillColor ?? text.fillColorData.cgColorValue
let strokeColor = rootNode?.textOutputNode.strokeColor ?? text.strokeColorData?.cgColorValue
let strokeWidth = rootNode?.textOutputNode.strokeWidth ?? CGFloat(text.strokeWidth ?? 0)
let tracking = rootNode?.textOutputNode.tracking ?? CGFloat(text.tracking)
let tracking = (CGFloat(text.fontSize) * (rootNode?.textOutputNode.tracking ?? CGFloat(text.tracking))) / 1000.0
// TODO LINE HEIGHT

let matrix = rootNode?.textOutputNode.xform ?? CATransform3DIdentity
Expand Down

0 comments on commit 28610fc

Please sign in to comment.