{"action":"opened","issue":{"url":"https://api.github.com/repos/Raizlabs/BonMot/issues/204","repository_url":"https://api.github.com/repos/Raizlabs/BonMot","labels_url":"https://api.github.com/repos/Raizlabs/BonMot/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/Raizlabs/BonMot/issues/204/comments","events_url":"https://api.github.com/repos/Raizlabs/BonMot/issues/204/events","html_url":"https://github.com/Raizlabs/BonMot/issues/204","id":181053366,"number":204,"title":"Decouple font and size in style","user":{"login":"KingOfBrian","id":114322,"avatar_url":"https://avatars.githubusercontent.com/u/114322?v=3","gravatar_id":"","url":"https://api.github.com/users/KingOfBrian","html_url":"https://github.com/KingOfBrian","followers_url":"https://api.github.com/users/KingOfBrian/followers","following_url":"https://api.github.com/users/KingOfBrian/following{/other_user}","gists_url":"https://api.github.com/users/KingOfBrian/gists{/gist_id}","starred_url":"https://api.github.com/users/KingOfBrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KingOfBrian/subscriptions","organizations_url":"https://api.github.com/users/KingOfBrian/orgs","repos_url":"https://api.github.com/users/KingOfBrian/repos","events_url":"https://api.github.com/users/KingOfBrian/events{/privacy}","received_events_url":"https://api.github.com/users/KingOfBrian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-05T02:49:24Z","updated_at":"2016-10-05T02:49:24Z","closed_at":null,"body":"Given this type of style:\r\n```swift\r\nlet string = try? NSAttributedString.composed(\r\n    ofXML: content,\r\n    baseStyle: .style(\r\n        .font(UIFont(name: \"GillSans-Light\", size: 20)!),\r\n        .lineHeightMultiple(1.8),\r\n        .color(.darkGray)),\r\n    rules: [\r\n        .style(\"black\", .style(\r\n            .color(.white),\r\n            .backgroundColor(.black),\r\n            .font(UIFont(name: \"SuperClarendon-Black\", size: 20)!)\r\n            )),\r\n        .style(\"red\", .style(\r\n            .color(.white),\r\n            .backgroundColor(.raizlabsRed),\r\n            .font(UIFont(name: \"SuperClarendon-Black\", size: 20)!)\r\n            )),\r\n        .style(\"signed\", .style(\r\n            .color(.raizlabsRed),\r\n            .font(UIFont(name: \"SuperClarendon-Black\", size: 20)!)\r\n            )),\r\n        .enter(element: \"racket\", insert: racket)\r\n    ]\r\n)\r\n```\r\nIt would be interesting to only specify the font size in the `baseStyle`, and have the styles specify the font type. That way the same rules could be re-used in difference places with different sizes.\r\n\r\n\r\n"}}
{"actor":{"display_login":"KingOfBrian"}}